Skip to content

Commit

Permalink
Build multi-platform docker image (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokiat authored Oct 8, 2023
1 parent 65e2fb1 commit e027547
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/i386
push: true
tags: mokiat/gocrane:latest
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
tags: [ '*' ]
tags: ["*"]

jobs:
push:
Expand All @@ -29,9 +29,10 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/i386
push: true
tags: mokiat/gocrane:${{ steps.get_tag.outputs.TAG }}

0 comments on commit e027547

Please sign in to comment.