Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/go-build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
cgo-enabled:
description: 'Set CGO_ENABLED environment variable'
required: false
type: string
default: ''
type: number
additional-env-vars:
description: 'Additional environment variables to set (KEY=value format, one per line)'
required: false
Expand Down Expand Up @@ -116,7 +115,7 @@
} >> "$GITHUB_ENV"

- name: Set CGO_ENABLED if specified
if: ${{ inputs.cgo-enabled != '' }}
if: ${{ inputs.cgo-enabled != null }}
run: echo "CGO_ENABLED=${{ inputs.cgo-enabled }}" >> "$GITHUB_ENV"

- name: Set additional environment variables
Expand Down Expand Up @@ -191,18 +190,18 @@
# for nightly/snapshot builds being locked behind the paid version of goreleaser.
- name: List snapshot images
# types are hard vov https://github.com/actions/runner/issues/2238
if: true

Check failure on line 193 in .github/workflows/go-build-release.yml

View workflow job for this annotation

GitHub Actions / lint

constant expression "true" in condition. remove the if: section
run: |
short_sha=$(git rev-parse --short HEAD)
docker image ls --format "{{.Repository}}:{{.Tag}}" | \
grep -e "$GITHUB_REPOSITORY:.*${short_sha}.*" | \
paste -sd ' ' /dev/stdin > images
- name: Push snapshot images
if: true

Check failure on line 200 in .github/workflows/go-build-release.yml

View workflow job for this annotation

GitHub Actions / lint

constant expression "true" in condition. remove the if: section
run: |
xargs -d ' ' -I{} -n1 sh -c "docker push {}" < images
- name: Create and push manifest for :snapshot tag
if: true

Check failure on line 204 in .github/workflows/go-build-release.yml

View workflow job for this annotation

GitHub Actions / lint

constant expression "true" in condition. remove the if: section
run: |
docker manifest create "$GITHUB_REPOSITORY:snapshot" "$(cat images)"
docker manifest push "$GITHUB_REPOSITORY:snapshot"
Loading