File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 3030 username : ${{ github.actor }}
3131 password : ${{ secrets.GITHUB_TOKEN }}
3232
33+ - name : Install cosign
34+ uses : sigstore/cosign-installer@v3.7.0
35+
3336 - name : Cache cargo bin
3437 id : cache-cargo
3538 uses : actions/cache@v3
5154 - name : Run build script
5255 run : bash scripts/build.sh
5356
54- - name : Run publish script
55- run : bash scripts/publish.sh ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
57+ # - name: Run publish script
58+ # run: bash scripts/publish.sh ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
59+
60+ # using my version until the PR is merged upstream
61+ # https://github.com/bytecodealliance/wkg-github-action/pull/7
62+ - name : Publish to GitHub Container Registry
63+ uses : duffney/wkg-github-action@9680cbd1dd38119bbc519c6c3e0b7fffe0b4982c
64+ with :
65+ file : target/wasm32-wasi/release/rust_wasi_hello.wasm
66+ oci-reference-without-tag : ghcr.io/${{ github.actor }}/rust-wasi-hello
67+ version : ${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
68+
69+ - name : Sign the wasm component
70+ run : cosign sign --yes ghcr.io/${{ github.actor }}/rust-wasi-hello@${{ steps.publish.outputs.digest }}
You can’t perform that action at this time.
0 commit comments