Skip to content

Commit 0b54410

Browse files
committed
Changes publishing to use GHCR
Adds extra step to extract version tag
1 parent 99d90a9 commit 0b54410

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ jobs:
1111
- name: Checkout
1212
uses: actions/checkout@v2
1313

14-
- name: Log in to GitHub Docker Registry
14+
- name: Log in to GitHub Container Registry
1515
uses: docker/login-action@v1
1616
with:
17-
registry: docker.pkg.github.com
17+
registry: ghcr.io
1818
username: ${{ github.actor }}
1919
password: ${{ secrets.GITHUB_TOKEN }}
2020

21+
- name: Get the tag name
22+
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
23+
2124
- name: Build container image
2225
uses: docker/build-push-action@v2
2326
with:
2427
push: true
2528
tags: |
26-
docker.pkg.github.com/${{ github.repository }}/image:${{ github.sha }}
29+
ghcr.io/${{ github.repository }}:${{ github.sha }}
30+
ghcr.io/${{ github.repository }}:${{ env.TAG }}

0 commit comments

Comments
 (0)