Upd: Simplify GitHub actions.

This commit is contained in:
Bojan Čekrlić 2021-05-29 21:05:30 +02:00
parent 4476cba5a5
commit c1be59d2f5
2 changed files with 22 additions and 22 deletions

View file

@ -101,17 +101,17 @@ jobs:
build-args: |
BASE_IMAGE=alpine:latest
- name: Build and push Ubuntu
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: boky/postfix:latest-ubuntu
platforms: "linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
cache-from: type=local,src=/tmp/.buildx-cache/ubuntu
cache-to: type=local,dest=/tmp/.buildx-cache-new/ubuntu
build-args: |
BASE_IMAGE=ubuntu:focal
# - name: Build and push Ubuntu
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# tags: boky/postfix:latest-ubuntu
# platforms: "linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
# cache-from: type=local,src=/tmp/.buildx-cache/ubuntu
# cache-to: type=local,dest=/tmp/.buildx-cache-new/ubuntu
# build-args: |
# BASE_IMAGE=ubuntu:focal
- name: Move cache
run: |

View file

@ -101,17 +101,17 @@ jobs:
build-args: |
BASE_IMAGE=alpine:latest
- name: Build and push Ubuntu
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: boky/postfix:${{ env.RELEASE_VERSION }}-ubuntu
platforms: "linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
cache-from: type=local,src=/tmp/.buildx-cache/ubuntu
cache-to: type=local,dest=/tmp/.buildx-cache-new/ubuntu
build-args: |
BASE_IMAGE=ubuntu:focal
# - name: Build and push Ubuntu
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# tags: boky/postfix:${{ env.RELEASE_VERSION }}-ubuntu
# platforms: "linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x"
# cache-from: type=local,src=/tmp/.buildx-cache/ubuntu
# cache-to: type=local,dest=/tmp/.buildx-cache-new/ubuntu
# build-args: |
# BASE_IMAGE=ubuntu:focal
- name: Move cache
run: |