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 64a9093 commit 6741720
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ 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 "Logged in"
docker buildx create --name container --driver=docker-container
echo "Created container for build"
docker buildx build --builder container --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 image ls
docker push "${{ secrets.DOCKER_HUB_REGISTRY_IMAGE }}:${{ github.ref_name }}"
Expand Down

0 comments on commit 6741720

Please sign in to comment.