Skip to content

Commit e5d67ee

Browse files
Build migrate container
1 parent 033e9db commit e5d67ee

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build-and-deploy.yml

+23
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ jobs:
3636
type=ref,event=pr
3737
type=raw,value=sha-${{ steps.sha.outputs.value }}
3838
39+
- name: Extract Docker metadata for the migration runner image
40+
id: migrate-meta
41+
uses: docker/metadata-action@v4
42+
with:
43+
images: ${{ secrets.PRIVATE_REGISTRY_URL }}/panini-migrate
44+
tags: |
45+
type=schedule
46+
type=ref,event=branch
47+
type=ref,event=tag
48+
type=ref,event=pr
49+
type=raw,value=sha-${{ steps.sha.outputs.value }}
50+
3951
- name: Build and push the Docker image
4052
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
4153
with:
@@ -46,6 +58,17 @@ jobs:
4658
cache-to: type=gha
4759
cache-from: type=gha
4860

61+
- name: Build and push the migration Docker image
62+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
63+
with:
64+
context: .
65+
target: migrate
66+
push: true
67+
tags: ${{ steps.migrate-meta.outputs.tags }}
68+
labels: ${{ steps.migrate-meta.outputs.labels }}
69+
cache-to: type=gha
70+
cache-from: type=gha
71+
4972
- name: Trigger deployment
5073
uses: aurelien-baudet/workflow-dispatch@v2
5174
with:

0 commit comments

Comments
 (0)