Skip to content

Commit

Permalink
build(deploy): activate fly deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneRifle committed Feb 20, 2024
1 parent b3c226b commit 3295514
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
env:
IMAGE_TAG: github-actions-${{ github.sha }}-${{ github.run_id }}-${{github.run_attempt}}
DOCKER_REPO: registry.fly.io
APP_NAME: formsg
steps:
- name: Checkout opengovsg/FormSG into the same local dir
uses: actions/checkout@v4
Expand Down Expand Up @@ -42,10 +44,13 @@ jobs:

- name: Build docker image
uses: docker/build-push-action@v5
env:
DOCKER_REPO: registry.fly.io
APP_NAME: formsg
with:
context: .
file: ./Dockerfile.demos
tags: registry.fly.io/${{env.APP_NAME}}:${{env.APP_VERSION}}
tags: ${{env.DOCKER_REPO}}/${{env.APP_NAME}}:${{env.APP_VERSION}}

- name: Deploy to Fly
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
run: |
flyctl deploy --ha false --image ${{env.DOCKER_REPO}}/${{env.APP_NAME}}:${{env.APP_VERSION}}

0 comments on commit 3295514

Please sign in to comment.