mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
fix: login before pushing docker images in release pipeline (#2496)
This commit is contained in:
14
.github/workflows/release.yaml
vendored
14
.github/workflows/release.yaml
vendored
@ -43,6 +43,13 @@ jobs:
|
|||||||
- name: Fetch git tags
|
- name: Fetch git tags
|
||||||
run: git fetch --tags --force
|
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
|
- uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: "~1.18"
|
go-version: "~1.18"
|
||||||
@ -242,13 +249,6 @@ jobs:
|
|||||||
- name: Fetch git tags
|
- name: Fetch git tags
|
||||||
run: git fetch --tags --force
|
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
|
- name: mkdir artifacts
|
||||||
run: mkdir artifacts
|
run: mkdir artifacts
|
||||||
|
|
||||||
|
@ -109,7 +109,7 @@ rm -rf "$temp_dir"
|
|||||||
|
|
||||||
if [[ "$push" == 1 ]]; then
|
if [[ "$push" == 1 ]]; then
|
||||||
log "--- Pushing Docker image for $arch ($image_tag)"
|
log "--- Pushing Docker image for $arch ($image_tag)"
|
||||||
docker push "$image_tag"
|
docker push "$image_tag" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$image_tag"
|
echo "$image_tag"
|
||||||
|
Reference in New Issue
Block a user