Skip to content

Commit c9951eb

Browse files
committed
used the image name from earlier jobs
1 parent f616651 commit c9951eb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ jobs:
1717
- name: Checkout repository
1818
uses: actions/checkout@v4
1919

20+
# Set up Docker Buildx
21+
- name: Set up Docker Buildx
22+
id: buildx
23+
uses: docker/setup-buildx-action@v1
24+
25+
# Extract metadata (tags, labels) for Docker
26+
- name: Extract metadata for Docker
27+
id: meta
28+
uses: docker/metadata-action@v3
29+
with:
30+
images: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
2031

2132
# Login against a Docker registry
2233
- name: Log into registry ${{ env.REGISTRY }}
@@ -28,8 +39,6 @@ jobs:
2839
password: ${{ secrets.GITHUB_TOKEN }}
2940

3041

31-
32-
3342
# Build Docker Image
3443
- name: Build Docker Image
3544
run: |

0 commit comments

Comments
 (0)