File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -53,23 +53,17 @@ runs:
5353 ghcr.io/launchdarkly/goreleaser-cross:v1.24.2 \
5454 -f /dev/null
5555 )"
56+ echo "$DOCKER_HUB_TOKEN" | docker exec --workdir "$PWD" --tty "$CONTAINER_ID" docker login --username "$DOCKER_HUB_USERNAME" --password-stdin
5657 echo "CONTAINER_ID=$CONTAINER_ID" >> "$GITHUB_ENV"
57- - name : Logout of Docker
58- shell : bash
59- run : |
60- docker logout ghcr.io
61- docker logout docker.io
6258 - name : Run Goreleaser
6359 shell : bash
6460 run : docker exec
6561 --env GITHUB_TOKEN
6662 --env HOMEBREW_DEPLOY_KEY
67- --env DOCKER_USERNAME=${{ env.DOCKER_HUB_USERNAME }}
68- --env DOCKER_PASSWORD=${{ env.DOCKER_HUB_TOKEN }}
6963 --workdir "$PWD"
7064 --tty
7165 " $CONTAINER_ID"
72- goreleaser release
66+ goreleaser release
7367 ${{ inputs.dry-run == 'true' && '--skip=publish' || '' }}
7468 ${{ inputs.snapshot == 'true' && '--snapshot' || '' }}
7569 ${{ inputs.skip == '' && '' || format('--skip={0}', inputs.skip) }}
Original file line number Diff line number Diff line change 2525 contents : write # Needed to upload release artifacts
2626 packages : read # Needed to load goreleaser-cross image
2727 needs : [ release-please ]
28- if : always() && ( needs.release-please.outputs.release_created == 'true' || github.event_name == 'pull_request')
28+ if : needs.release-please.outputs.release_created == 'true' || github.event_name == 'pull_request'
2929 runs-on : ubuntu-22.04-8core-32gb
3030 outputs :
3131 hashes : ${{ steps.publish.outputs.hashes }}
5959 permissions :
6060 id-token : write
6161 contents : write
62- if : always() && needs.release-please.outputs.release_created == 'true'
62+ if : needs.release-please.outputs.release_created == 'true'
6363 steps :
6464 - uses : actions/checkout@v4
6565 - uses : actions/setup-node@v3
You can’t perform that action at this time.
0 commit comments