Skip to content

Commit

Permalink
Merge pull request #21 from zooniverse/gha-deploy
Browse files Browse the repository at this point in the history
Deploy with GHA
  • Loading branch information
zwolf authored Jan 29, 2024
2 parents a9912e8 + 89e2198 commit b17ba5b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 49 deletions.
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 }}
48 changes: 0 additions & 48 deletions Jenkinsfile

This file was deleted.

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 b17ba5b

Please sign in to comment.