Skip to content

Commit

Permalink
Merge pull request #40 from fluxcd/set-output-deprecation
Browse files Browse the repository at this point in the history
build: convert ::set-output to $GITHUB_OUTPUT
  • Loading branch information
stefanprodan authored Feb 17, 2023
2 parents 5e24a37 + 6d94e95 commit b53530c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
if [[ $GITHUB_REF == refs/tags/* ]]; then
VERSION=${GITHUB_REF/refs\/tags\//}
fi
echo ::set-output name=VERSION::${VERSION}
echo "version=${VERSION}" >> $GITHUB_OUTPUT
- uses: actions/setup-go@v2
with:
go-version: 1.19.x
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
fluxcd/${{ env.CONTROLLER }}
ghcr.io/fluxcd/${{ env.CONTROLLER }}
tags: |
type=raw,value=${{ steps.prep.outputs.VERSION }}
type=raw,value=${{ steps.prep.outputs.version }}
- name: Docker push
uses: docker/build-push-action@v2
with:
Expand All @@ -80,8 +80,8 @@ jobs:
env:
COSIGN_EXPERIMENTAL: 1
run: |
cosign sign fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
cosign sign ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.VERSION }}
cosign sign fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.version }}
cosign sign ghcr.io/fluxcd/${{ env.CONTROLLER }}:${{ steps.prep.outputs.version }}
- name: GoReleaser publish signed SBOM
if: startsWith(github.ref, 'refs/tags/v')
uses: goreleaser/goreleaser-action@v3
Expand Down

0 comments on commit b53530c

Please sign in to comment.