Skip to content

Commit

Permalink
fix: docker build ci (#876)
Browse files Browse the repository at this point in the history
* fix: docker build ci

* fix: docker build ci

* fix: docker build ci

* fix: docker build ci

* fix: docker build ci

* fix: docker build ci

* fix: docker build ci
  • Loading branch information
yevheniyJ authored Dec 13, 2024
1 parent 939ae38 commit a0345b8
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,25 @@ jobs:
run: |
cp packages/docker/Dockerfile Dockerfile
# to enable buildx (multiplatform build)
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3

- name: Build Docker image
run: |
docker login -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}" docker.io
docker buildx build --platform linux/amd64,linux/arm64 --pull -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}" -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest" .
docker push "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}"
docker push "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest"
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
tags: |
"${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}"
"${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest"
exe:
runs-on: windows-latest
Expand Down

0 comments on commit a0345b8

Please sign in to comment.