Skip to content

Commit

Permalink
Deploy with GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Jan 29, 2024
1 parent c21215e commit 89e2198
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/deploy_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to Production

on:
push:
branches:
- master
workflow_dispatch:

jobs:
build_and_push_image:
name: Build and Push Image
uses: zooniverse/ci-cd/.github/workflows/build_and_push_image.yaml@main
with:
repo_name: prn-maps-api
commit_id: ${{ github.sha }}
latest: true

deploy_production:
name: Deploy to Production
uses: zooniverse/ci-cd/.github/workflows/deploy_app.yaml@main
needs: build_and_push_image
with:
app_name: prn-maps-api
repo_name: prn-maps-api
commit_id: ${{ github.sha }}
environment: production
secrets:
creds: ${{ secrets.AZURE_AKS }}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: prn-maps-api
image: zooniverse/prn-maps-api:__IMAGE_TAG__
image: ghcr.io/zooniverse/prn-maps-api:__IMAGE_TAG__
resources:
requests:
memory: "100Mi"
Expand Down

0 comments on commit 89e2198

Please sign in to comment.