Skip to content

Commit

Permalink
build: add proper tag to docker build in ghcr.io
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Mar 6, 2022
1 parent b25bb3e commit 5278ad0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Build image
run: docker build -t ghcr.io/${{ github.repository }} .
env:
DOCKER_BUILDKIT: '1'

- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

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

0 comments on commit 5278ad0

Please sign in to comment.