update github actions

This commit is contained in:
Alberto Xamin 2023-01-23 16:05:57 +00:00 committed by GitHub
parent ad9007628c
commit 65a3705e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 41 deletions

View File

@ -32,16 +32,6 @@ jobs:
--output "type=image,push=false" \ --output "type=image,push=false" \
--tag albertoxamin/bang:dev \ --tag albertoxamin/bang:dev \
--file ./Dockerfile ./ --file ./Dockerfile ./
-
name: Docker Buildx (build arm64)
run: |
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/arm64 \
--output "type=image,push=false" \
--tag albertoxamin/bang:dev \
--file ./Dockerfile ./
- -
name: Docker Buildx (build armv-7) name: Docker Buildx (build armv-7)
run: | run: |
@ -63,7 +53,7 @@ jobs:
run: | run: |
docker buildx build \ docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-from "type=local,src=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm/v7,linux/arm64 \ --platform linux/amd64,linux/arm/v7 \
--output "type=image,push=true" \ --output "type=image,push=true" \
--tag albertoxamin/bang:dev \ --tag albertoxamin/bang:dev \
--file ./Dockerfile ./ --file ./Dockerfile ./

View File

@ -28,7 +28,7 @@ jobs:
docker buildx build \ docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64 \
--output "type=image,push=false" \ --output "type=image,push=false" \
--tag albertoxamin/bang:latest \ --tag albertoxamin/bang:latest \
--file ./Dockerfile ./ --file ./Dockerfile ./
@ -53,7 +53,7 @@ jobs:
run: | run: |
docker buildx build \ docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-from "type=local,src=/tmp/.buildx-cache" \
--platform linux/amd64,linux/arm64,linux/arm/v7 \ --platform linux/amd64,linux/arm/v7 \
--output "type=image,push=true" \ --output "type=image,push=true" \
--tag albertoxamin/bang:latest \ --tag albertoxamin/bang:latest \
--file ./Dockerfile ./ --file ./Dockerfile ./

View File

@ -31,34 +31,34 @@ jobs:
--output "type=image,push=false" \ --output "type=image,push=false" \
--tag albertoxamin/bang:test \ --tag albertoxamin/bang:test \
--file ./Dockerfile ./ --file ./Dockerfile ./
build-arm64: # build-arm64:
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- # -
name: Checkout # name: Checkout
uses: actions/checkout@v3 # uses: actions/checkout@v3
- # -
name: Set up Docker Buildx # name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v3 # uses: crazy-max/ghaction-docker-buildx@v3
- # -
name: Cache Docker layers # name: Cache Docker layers
uses: actions/cache@v3 # uses: actions/cache@v3
id: cache # id: cache
with: # with:
path: /tmp/.buildx-cache # path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }} # key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: | # restore-keys: |
${{ runner.os }}-buildx- # ${{ runner.os }}-buildx-
- # -
name: Docker Buildx (test build arm64) # name: Docker Buildx (test build arm64)
run: | # run: |
docker buildx build \ # docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \ # --cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \ # --cache-to "type=local,dest=/tmp/.buildx-cache" \
--platform linux/arm64 \ # --platform linux/arm64 \
--output "type=image,push=false" \ # --output "type=image,push=false" \
--tag albertoxamin/bang:test \ # --tag albertoxamin/bang:test \
--file ./Dockerfile ./ # --file ./Dockerfile ./
build-armv-7: build-armv-7:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: