Skip to content

Commit

Permalink
Attempt to build multi-platform pushing manifest list.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Oct 1, 2023
1 parent f15c759 commit 2c87924
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME
- name: Login to Docker Hub
Expand All @@ -57,8 +60,10 @@ jobs:
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE_ID:$VERSION --push .

0 comments on commit 2c87924

Please sign in to comment.