Skip to content

Commit

Permalink
ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshsadiq committed Aug 14, 2024
1 parent 559bbfa commit 342972c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/actions/mike-test-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,26 @@ runs:
run: |
CONTAINER_ID="$(
docker run --detach \
--env GITHUB_TOKEN \
--env HOMEBREW_DEPLOY_KEY \
--volume "$PWD:$PWD" \
--workdir "$PWD" \
--entrypoint tail \
ghcr.io/goreleaser/goreleaser-cross:latest \
-f /dev/null
)"
docker exec --tty "$CONTAINER_ID" dpkg --add-architecture i386
docker exec --tty "$CONTAINER_ID" apt-get update
docker exec --tty "$CONTAINER_ID" apt-get install --no-install-recommends -y -q crossbuild-essential-i386
docker exec --tty "$CONTAINER_ID" goreleaser build --snapshot --config .goreleaser.yaml
echo "CONTAINER_ID=$CONTAINER_ID" >> "$GITHUB_ENV"
- uses: hoshsadiq/ssh2action@main

- shell: bash
run: docker exec \
--env GITHUB_TOKEN \
--env HOMEBREW_DEPLOY_KEY \
--workdir "$PWD" \
--tty \
"$CONTAINER_ID" \
goreleaser build --snapshot --config .goreleaser.yaml
env:
GITHUB_TOKEN: ${{ inputs.token }}
HOMEBREW_DEPLOY_KEY: ${{ inputs.homebrew-gh-secret }}
Expand Down

0 comments on commit 342972c

Please sign in to comment.