File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ inputs:
1919 tag :
2020 description : ' Tag to upload artifacts to.'
2121 required : true
22+ ghcr_token :
23+ description : ' Token to log into ghcr.io'
24+ required : true
25+ default : " ${{ secrets.GITHUB_TOKEN }}"
2226
2327outputs :
2428 hashes :
4145 shell : bash
4246 run : |
4347 docker login --username $DOCKER_HUB_USERNAME --password $DOCKER_HUB_TOKEN
44- echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
48+ echo ${{ inputs.ghcr_token }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
4549 CONTAINER_ID="$(
4650 docker run --detach \
4751 --volume "$PWD:$PWD" \
Original file line number Diff line number Diff line change 2323 permissions :
2424 id-token : write # Needed to obtain Docker tokens
2525 contents : write # Needed to upload release artifacts
26+ packages : read # Needed to load goreleaser-cross image
2627 runs-on : ubuntu-latest
2728 outputs :
2829 hashes : ${{ steps.publish.outputs.hashes }}
Original file line number Diff line number Diff line change 2323 permissions :
2424 id-token : write # Needed to obtain Docker tokens
2525 contents : write # Needed to upload release artifacts
26+ packages : read # Needed to load goreleaser-cross image
2627 needs : [ release-please ]
2728 if : always() && (needs.release-please.outputs.release_created == 'true' || github.event_name == 'pull_request')
2829 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments