Skip to content

Commit eea1791

Browse files
committed
add prod image in ci
1 parent be7ca94 commit eea1791

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/ci.yml

+17
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,20 @@ jobs:
3030
with:
3131
image: teufa:ci
3232
run: pytest
33+
- name: docker meta
34+
id: meta
35+
uses: docker/metadata-action@v5
36+
with:
37+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
38+
- name: build prod image
39+
uses: docker/build-push-action@v5
40+
if: github.ref == 'refs/heads/main'
41+
with:
42+
context: .
43+
tags: ${{ steps.meta.outputs.tags }}
44+
labels: ${{ steps.meta.outputs.labels }}
45+
target: prod
46+
load: true
47+
cache-from: type=gha
48+
cache-to: type=gha,mode=max
49+
push: false

0 commit comments

Comments
 (0)