Skip to content

Commit 59219cb

Browse files
committed
ci: Login after checkout
1 parent d765b30 commit 59219cb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ jobs:
1515
name: create draft release
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: Login to GitHub Container Registry
19-
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # tag=v3.7.0
20-
with:
21-
registry: ghcr.io
22-
username: ${{ github.actor }}
23-
password: ${{ secrets.GITHUB_TOKEN }}
2418
- name: Set env
2519
run: echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
2620
- name: checkout code
@@ -31,6 +25,12 @@ jobs:
3125
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # tag=v6.2.0
3226
with:
3327
go-version: '^1.24'
28+
- name: Login to GitHub Container Registry
29+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # tag=v3.7.0
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
3434
- name: publish image
3535
run: |
3636
make docker-build-all docker-push-all TAG=${{ env.RELEASE_TAG }} REGISTRY=${{ vars.REGISTRY }}

0 commit comments

Comments
 (0)