Skip to content

Commit 5278ad0

Browse files
committed
build: add proper tag to docker build in ghcr.io
1 parent b25bb3e commit 5278ad0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,17 +156,17 @@ jobs:
156156
- name: Checkout
157157
uses: actions/checkout@v2
158158

159-
- name: Build image
160-
run: docker build -t ghcr.io/${{ github.repository }} .
161-
env:
162-
DOCKER_BUILDKIT: '1'
163-
164159
- name: Log in to GitHub Container Registry
165160
uses: docker/login-action@v1
166161
with:
167162
registry: ghcr.io
168163
username: ${{ github.actor }}
169164
password: ${{ secrets.GITHUB_TOKEN }}
170165

171-
- name: Push image to GHCR
172-
run: docker push ghcr.io/${{ github.repository }}
166+
- name: Build and Push Docker Image
167+
uses: docker/build-push-action@v2
168+
with:
169+
push: true
170+
tags: |
171+
ghcr.io/${{ github.repository }}:${{ steps.get_tag_version.outputs.TAG_VERSION }}
172+
ghcr.io/${{ github.repository }}:latest

0 commit comments

Comments
 (0)