Skip to content

Commit

Permalink
feat: add multi-platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
Its-Alex committed Oct 29, 2021
1 parent 9f716a2 commit cdc19b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
tags: itsalex/sentry-mattermost-sidecar:test-build-ci
file: Dockerfile
- name: Image digest
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: itsalex/sentry-mattermost-sidecar:latest
file: Dockerfile
- name: Image digest
Expand Down Expand Up @@ -84,6 +86,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: itsalex/sentry-mattermost-sidecar:${{ steps.branch_name.outputs.TAG_VERSION }}
file: Dockerfile
- name: Image digest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ COPY go.sum /src/
COPY cmd/ /src/cmd/

RUN go mod download \
&& GOOS=linux GOARCH=amd64 go build -v -o bin/sms github.com/itsalex/sentry-mattermost-sidecar/cmd/sms
&& GOOS=linux go build -v -o bin/sms github.com/itsalex/sentry-mattermost-sidecar/cmd/sms

FROM alpine:3.14.2

Expand Down

0 comments on commit cdc19b6

Please sign in to comment.