Multi-architettura prova 1
Some checks failed
Compila e pubblica sul registro integrato / Build-Docker-Image (push) Failing after 1m24s
Some checks failed
Compila e pubblica sul registro integrato / Build-Docker-Image (push) Failing after 1m24s
This commit is contained in:
@@ -15,9 +15,25 @@ jobs:
|
|||||||
- name: Set repository name lowercase
|
- name: Set repository name lowercase
|
||||||
run: echo "REPO_LOWERCASE=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
run: echo "REPO_LOWERCASE=$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Set up QEMU
|
||||||
run: |
|
uses: docker/setup-qemu-action@v2
|
||||||
docker build -t $REPO_LOWERCASE:latest .
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v3
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: $REPO_LOWERCASE:latest:latest
|
||||||
|
|
||||||
|
#- name: Build Docker image
|
||||||
|
# run: |
|
||||||
|
# docker build -t $REPO_LOWERCASE:latest .
|
||||||
|
|
||||||
- name: Publish Docker image
|
- name: Publish Docker image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user