Skip to content

Commit

Permalink
feat: multi-platform build
Browse files Browse the repository at this point in the history
  • Loading branch information
cleitonnovotni authored and cleitonrnovotni committed Sep 13, 2024
1 parent fd5b8e0 commit 474979c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,11 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build the Docker image
run: |
docker build -t mauricioromagnollo/kafrest:latest .
- name: Login to Docker Hub
run: |
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
- name: Publish Docker Image to Docker Hub
- name: Build and push image
if: success()
run: |
docker push mauricioromagnollo/kafrest
docker buildx build -t mauricioromagnollo/kafrest:latest --platform linux/amd64,linux/arm64 --push .

0 comments on commit 474979c

Please sign in to comment.