Skip to content

Commit 905587a

Browse files
committed
used the image name from earlier jobs
1 parent 06ebafd commit 905587a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/push-docker-image.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ jobs:
4242
# Build Docker Image
4343
- name: Build Docker Image
4444
run: |
45-
docker build -t ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} .
46-
docker tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
47-
48-
45+
docker build -t ghcr.io/${{ github.repository_owner }}:${{ steps.meta.outputs.tags }} .
46+
docker tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }} ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
4947
5048
- name: Wait for Docker container to be ready
5149
run: sleep 30

0 commit comments

Comments
 (0)