Skip to content

Merge pull request #146 from GSA/bugfix/144_faq_sidenav #57

Merge pull request #146 from GSA/bugfix/144_faq_sidenav

Merge pull request #146 from GSA/bugfix/144_faq_sidenav #57

Workflow file for this run

name: SRT-UI DEV Deploy
on:
push:
branches:
- 'dev'
jobs:
docker:
name: Build and Push Docker Image
runs-on: ubuntu-latest
outputs:
formattedTime: ${{ steps.current-time.outputs.formattedTime }}
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Get Current Time
uses: josStorer/[email protected]
id: current-time
with:
format: YYYYMMDD-HHmmss
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
version: v0.9.1
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/srt-ui:dev-${{ steps.current-time.outputs.formattedTime }}
build-args: |
"environment=dev"
cloudgov:
name: Deploying to Cloud.gov
runs-on: ubuntu-latest
needs: docker
steps:
-
name: Checkout
uses: actions/[email protected]
-
name: Push to Cloud.gov Dev Space
uses: citizen-of-planet-earth/cf-cli-action@master
with:
cf_api: https://api.fr.cloud.gov
cf_username: ${{ secrets.CF_USER }}
cf_password: ${{ secrets.CF_PASSWORD }}
cf_org: gsa-ogp-srt
cf_space: dev
command: push srt-ui-dev -f cf/manifest.dev.yml --docker-image ${{ secrets.DOCKERHUB_USERNAME }}/srt-ui:dev-${{ needs.docker.outputs.formattedTime }}