add prod image in ci
This commit is contained in:
parent
be7ca948b7
commit
eea1791802
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -30,3 +30,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
image: teufa:ci
|
image: teufa:ci
|
||||||
run: pytest
|
run: pytest
|
||||||
|
- name: docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
- name: build prod image
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
if: github.ref == 'refs/heads/main'
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
target: prod
|
||||||
|
load: true
|
||||||
|
cache-from: type=gha
|
||||||
|
cache-to: type=gha,mode=max
|
||||||
|
push: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user