fix: update build workflow to combine tagging and pushing of registry images
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 17s
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 17s
This commit is contained in:
@@ -43,13 +43,9 @@ jobs:
|
|||||||
|
|
||||||
echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY" -u "$REGISTRY_USERNAME" --password-stdin
|
echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY" -u "$REGISTRY_USERNAME" --password-stdin
|
||||||
|
|
||||||
- name: Tag registry images
|
- name: Tag and push registry images
|
||||||
run: |
|
run: |
|
||||||
docker tag condado-newsletter:latest ${REGISTRY}/${IMAGE_NAME}:latest
|
docker tag condado-newsletter:latest ${REGISTRY}/${IMAGE_NAME}:latest
|
||||||
docker tag condado-newsletter:latest ${REGISTRY}/${IMAGE_NAME}:${{ github.sha }}
|
docker tag condado-newsletter:latest ${REGISTRY}/${IMAGE_NAME}:${{ github.sha }}
|
||||||
|
docker push ${REGISTRY}/${IMAGE_NAME}:latest
|
||||||
- name: Build and Push
|
docker push ${REGISTRY}/${IMAGE_NAME}:${{ github.sha }}
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: gitea.lab:80/sancho41/condado-newsletter:latest
|
|
||||||
|
|||||||
Reference in New Issue
Block a user