👷 ci(build): enhance docker build process with buildx
All checks were successful
build-and-push / docker (push) Successful in 1m12s
All checks were successful
build-and-push / docker (push) Successful in 1m12s
- add Docker Buildx setup for advanced build capabilities - update build step to use buildx for multi-platform support
This commit is contained in:
parent
eba07721ca
commit
eb5b9bbb6e
1 changed files with 6 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ jobs:
|
|||
docker:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
|
@ -17,7 +20,8 @@ jobs:
|
|||
|
||||
- name: Build image
|
||||
run: |
|
||||
docker build -t "${{ secrets.REGISTRY_IMAGE }}:${{ github.sha }}" \
|
||||
docker buildx build --load \
|
||||
-t "${{ secrets.REGISTRY_IMAGE }}:${{ github.sha }}" \
|
||||
-t "${{ secrets.REGISTRY_IMAGE }}:latest" .
|
||||
|
||||
- name: Push image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue