Refactor Docker image build process to use Buildx for improved efficiency
Build And Push Image / docker (push) Failing after 1m25s
Details
Build And Push Image / docker (push) Failing after 1m25s
Details
This commit is contained in:
parent
45de58cbf3
commit
d524011060
|
|
@ -16,10 +16,15 @@ jobs:
|
||||||
username: ${{ vars.REGISTRY_USERNAME }}
|
username: ${{ vars.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build Docker Image
|
- name: Set Up Docker Buildx
|
||||||
run: |
|
uses: docker/setup-buildx-action@v3
|
||||||
docker build -t ${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest .
|
|
||||||
|
|
||||||
- name: Push Docker Image
|
- name: Build And Push
|
||||||
run: |
|
uses: docker/build-push-action@v6
|
||||||
docker push ${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
${{ vars.REGISTRY_HOST }}/${{ vars.REGISTRY_USERNAME }}/${{ vars.IMAGE_NAME }}:latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue