Skip to content

Commit

Permalink
log in to docker on the build box
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-zorn committed Aug 15, 2024
1 parent 8c68216 commit 150487b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ runs:
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/386
- name: Login to Docker
shell: bash
run: echo $DOCKER_TOKEN | docker login --username $DOCKER_USERNAME --password-stdin

- name: Set up goreleaser
# Note: that we're unable to use the normal goreleaser actions and have to use this docker image.
# This is because the dev server piece of the CLI uses SQLite which requires CGO and cross compilation.
Expand All @@ -56,8 +52,9 @@ runs:
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" git config --global --add safe.directory '*'
docker exec --tty "$CONTAINER_ID" echo $DOCKER_TOKEN | docker login --username $DOCKER_USERNAME --password-stdin
echo "CONTAINER_ID=$CONTAINER_ID" >> "$GITHUB_ENV"
- name: Run Goreleaser
shell: bash
run: docker exec
Expand Down

0 comments on commit 150487b

Please sign in to comment.