Skip to content

Commit

Permalink
fix: docker build ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniyJ committed Dec 13, 2024
1 parent 2d361b0 commit bdf9602
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,13 @@ jobs:
- name: Build Docker image
run: |
docker login -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}" docker.io
echo "Logged in"
docker buildx build --platform linux/amd64,linux/arm64 --output="type=image" --pull -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}" -t "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest" .
echo "Image build successful"
docker push "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}"
echo "First push succeed"
docker push "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:latest"
echo "Second push succeed"
exe:
runs-on: windows-latest
Expand Down

0 comments on commit bdf9602

Please sign in to comment.