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

This commit is contained in:
Dean Sheather
2022-06-19 13:12:09 +10:00
committed by GitHub
parent 4b3608b628
commit 8d6faa3c1a
2 changed files with 8 additions and 8 deletions
+7 -7
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
+1 -1
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"