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

View file

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