From 65a3705e25d420ad8d9802a87ff00c6a796a72c2 Mon Sep 17 00:00:00 2001 From: Alberto Xamin Date: Mon, 23 Jan 2023 16:05:57 +0000 Subject: [PATCH] update github actions --- .github/workflows/dev-image.yml | 12 +------ .github/workflows/docker-image.yml | 4 +-- .github/workflows/tests.yaml | 56 +++++++++++++++--------------- 3 files changed, 31 insertions(+), 41 deletions(-) diff --git a/.github/workflows/dev-image.yml b/.github/workflows/dev-image.yml index fda62aa..a7b9787 100644 --- a/.github/workflows/dev-image.yml +++ b/.github/workflows/dev-image.yml @@ -32,16 +32,6 @@ jobs: --output "type=image,push=false" \ --tag albertoxamin/bang:dev \ --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) run: | @@ -63,7 +53,7 @@ jobs: run: | docker buildx build \ --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" \ --tag albertoxamin/bang:dev \ --file ./Dockerfile ./ diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e38b124..b12c32b 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -28,7 +28,7 @@ jobs: docker buildx build \ --cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \ - --platform linux/amd64,linux/arm64 \ + --platform linux/amd64 \ --output "type=image,push=false" \ --tag albertoxamin/bang:latest \ --file ./Dockerfile ./ @@ -53,7 +53,7 @@ jobs: run: | docker buildx build \ --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" \ --tag albertoxamin/bang:latest \ --file ./Dockerfile ./ diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index f902814..7a853a0 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -31,34 +31,34 @@ jobs: --output "type=image,push=false" \ --tag albertoxamin/bang:test \ --file ./Dockerfile ./ - build-arm64: - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v3 - - - name: Set up Docker Buildx - uses: crazy-max/ghaction-docker-buildx@v3 - - - name: Cache Docker layers - uses: actions/cache@v3 - id: cache - with: - path: /tmp/.buildx-cache - key: ${{ runner.os }}-buildx-${{ github.sha }} - restore-keys: | - ${{ runner.os }}-buildx- - - - name: Docker Buildx (test 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:test \ - --file ./Dockerfile ./ + # build-arm64: + # runs-on: ubuntu-latest + # steps: + # - + # name: Checkout + # uses: actions/checkout@v3 + # - + # name: Set up Docker Buildx + # uses: crazy-max/ghaction-docker-buildx@v3 + # - + # name: Cache Docker layers + # uses: actions/cache@v3 + # id: cache + # with: + # path: /tmp/.buildx-cache + # key: ${{ runner.os }}-buildx-${{ github.sha }} + # restore-keys: | + # ${{ runner.os }}-buildx- + # - + # name: Docker Buildx (test 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:test \ + # --file ./Dockerfile ./ build-armv-7: runs-on: ubuntu-latest steps: