Skip to content

Commit 46ba1d9

Browse files
committed
used the image name from earlier jobs
1 parent 905587a commit 46ba1d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
password: ${{ secrets.GITHUB_TOKEN }}
4040

4141

42-
# Build Docker Image
42+
# Build and tag Docker Image
4343
- name: Build Docker Image
4444
run: |
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
45+
docker build -t ghcr.io/${{ steps.meta.outputs.tags }} .
46+
docker tag ${{ env.IMAGE_NAME }} ghcr.io/$${{ steps.meta.outputs.tags }}:latest
4747
4848
- name: Wait for Docker container to be ready
4949
run: sleep 30
@@ -54,5 +54,5 @@ jobs:
5454
# Push the Docker image to the registry
5555
- name: Push Docker Image to GHCR
5656
run: |
57-
docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
57+
docker push ghcr.io/${{ steps.meta.outputs.tags }}
5858
docker push ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest

0 commit comments

Comments
 (0)