fix: login before pushing docker images in release pipeline (#2496)

This commit is contained in:
Dean Sheather 2022-06-18 22:12:09 -05:00 committed by GitHub
parent 4b3608b628
commit 8d6faa3c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -43,6 +43,13 @@ jobs:
- name: Fetch git tags
run: git fetch --tags --force
- name: Docker Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v3
with:
go-version: "~1.18"
@ -242,13 +249,6 @@ jobs:
- name: Fetch git tags
run: git fetch --tags --force
- name: Docker Login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: mkdir artifacts
run: mkdir artifacts

View File

@ -109,7 +109,7 @@ rm -rf "$temp_dir"
if [[ "$push" == 1 ]]; then
log "--- Pushing Docker image for $arch ($image_tag)"
docker push "$image_tag"
docker push "$image_tag" 1>&2
fi
echo "$image_tag"