generated from mlibrary/python-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 1.1 KB
/
build-deploy-on-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy release
on:
release:
types: [ released ]
jobs:
build-production:
name: Build production ${{ github.event.release.tag_name }}
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-production.yml@v1
with:
image_name: ${{ vars.IMAGE_NAME }}
tag: ${{ github.event.release.tag_name }}
dockerfile: Dockerfile
secrets: inherit
deploy-production-digifeeds:
needs: build-production
name: Deploy to production - digifeeds
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@v1
with:
image: ghcr.io/mlibrary/${{ vars.IMAGE_NAME }}:${{ github.event.release.tag_name }}
file: environments/digifeeds/production/app-image.txt
secrets: inherit
deploy-production-hathifiles:
needs: build-production
name: Deploy to production - hathifiles
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@v1
with:
image: ghcr.io/mlibrary/${{ vars.IMAGE_NAME }}:${{ github.event.release.tag_name }}
file: environments/hathifiles/production/cli-image.txt
secrets: inherit