Push latest tag on docker image on release
This commit is contained in:
parent
87fbcdc013
commit
737f073287
1 changed files with 6 additions and 5 deletions
|
|
@ -22,11 +22,12 @@ jobs:
|
||||||
username: ${{ secrets.REGISTRY_USER }}
|
username: ${{ secrets.REGISTRY_USER }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build image
|
- name: Build and push image
|
||||||
run: |
|
|
||||||
docker build -t git.sinfonie.org/sinfonie/photo26:${{ steps.meta.outputs.TAG }} .
|
|
||||||
|
|
||||||
- name: Push image
|
|
||||||
run: |
|
run: |
|
||||||
|
docker build \
|
||||||
|
-t git.sinfonie.org/sinfonie/photo26:${{ steps.meta.outputs.TAG }} \
|
||||||
|
-t git.sinfonie.org/sinfonie/photo26:latest \
|
||||||
|
.
|
||||||
docker push git.sinfonie.org/sinfonie/photo26:${{ steps.meta.outputs.TAG }}
|
docker push git.sinfonie.org/sinfonie/photo26:${{ steps.meta.outputs.TAG }}
|
||||||
|
docker push git.sinfonie.org/sinfonie/photo26:latest
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue