File tree Expand file tree Collapse file tree 3 files changed +10
-16
lines changed
Expand file tree Collapse file tree 3 files changed +10
-16
lines changed Original file line number Diff line number Diff line change 5151 name : ${{ inputs.artifact }}-${{ matrix.go-version }}
5252 path : ${{ inputs.service}}/bin/${{ inputs.artifact }}
5353 retention-days : 5
54-
55- - name : set output for build files
56- id : outputs
57- run : |
58- echo "::set-output name=binary_x64::${{ inputs.service}}/bin/${{ inputs.artifact }}"
59- echo "::set-output name=binary_name::${{ inputs.artifact }}"
Original file line number Diff line number Diff line change @@ -110,10 +110,12 @@ jobs:
110110 env :
111111 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112112
113- - name : upload amd64 go binary as release asset
114- uses : actions/upload-release-asset@v1
113+ - name : Download build artifacts
114+ uses : actions/download-artifact@v4
115115 with :
116- upload_url : ${{ steps.create_release.outputs.upload_url }}
117- asset_path : ${{ needs.go-build.outputs.binary_x64 }} # Path to arm64 binary from reusable workflow's output
118- asset_name : ${{ needs.go-build.outputs.binary_name }}-linux-amd64
119- asset_content_type : application/octet-stream # Content type for binaries
116+ path : ./dist
117+
118+ - name : Upload artifacts to Release
119+ uses : softprops/action-gh-release@v2
120+ with :
121+ files : ./dist/**/*
Original file line number Diff line number Diff line change 8686 - name : sign the published docker image
8787 if : startsWith(github.ref, 'refs/tags/v')
8888 env :
89+ COSIGN_EXPERIMENTAL : " true"
8990 TAGS : ${{ steps.meta.outputs.tags }}
9091 DIGEST : ${{ steps.build-and-push.outputs.digest }}
9192 # This step uses the identity token to provision an ephemeral certificate
9293 # against the sigstore community Fulcio instance.
93- run : |
94- echo "${TAGS}" | while read tag; do
95- cosign sign --yes $tag
96- done
94+ run : cosign sign --yes ghcr.io/your-org/your-image@${DIGEST}
You can’t perform that action at this time.
0 commit comments