Skip to content

Commit

Permalink
Upd: Simplify GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
bokysan committed May 29, 2021
1 parent 15dab4c commit af7438a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit af7438a

Please sign in to comment.