check in instructions for docker/win #400
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GOV.UK PaaS | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
concurrency: ci-${{ github.ref }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true | |
- name: Build docs with middleman | |
run: make build | |
- name: Set environment variables (Push) | |
if: ${{ github.event_name == 'push' }} | |
run: | | |
SPACE=technical-architecture | |
echo "SPACE=${SPACE}" >> $GITHUB_ENV | |
APP_NAME=dfe-technical-guidance | |
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV | |
- name: Set environment variables (Pull request) | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
SPACE=technical-architecture-dev | |
echo "SPACE=${SPACE}" >> $GITHUB_ENV | |
APP_NAME=dfe-technical-guidance-${{ github.event.number }} | |
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV | |
- name: Configure Cloud Foundry CLI with space ${{ env.SPACE }} | |
uses: DFE-Digital/github-actions/setup-cf-cli@master | |
with: | |
CF_USERNAME: ${{ secrets.CF_USERNAME }} | |
CF_PASSWORD: ${{ secrets.CF_PASSWORD }} | |
CF_SPACE_NAME: ${{ env.SPACE }} | |
- name: Push ${{ env.APP_NAME }} to GOV.UK PaaS | |
run: cf push -p build -b staticfile_buildpack --disk 128M --memory 64M ${{ env.APP_NAME }} | |
- name: Post comment to Pull Request ${{ github.event.number }} | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
message: Review app deployed to <https://${{ env.APP_NAME }}.london.cloudapps.digital> |