Refactor Docker image build process to use Buildx for improved efficiency
Build And Push Image / docker (push) Failing after 1m25s Details

This commit is contained in:
Matt 2025-08-06 15:42:06 +02:00
parent 45de58cbf3
commit d524011060
1 changed files with 11 additions and 6 deletions

View File

@ -16,10 +16,15 @@ jobs:
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build Docker Image
run: |
docker build -t ${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest .
- name: Set Up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Push Docker Image
run: |
docker push ${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest
- name: Build And Push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: |
${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest