Skip to content

Commit

Permalink
Add platform to build matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
srstsavage committed Dec 1, 2023
1 parent 9acdedc commit cd53dc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
#amd64
- tag: "jdk17-openjdk"
base: "tomcat:10.1.16-jdk17-temurin-jammy@sha256:5d06ae2052b1a4c636454e65360a712fd262eebf574f8a97f37c2580edce7d46"
platform: "linux/amd64"
- tag: "jdk17-temurin-focal"
base: "tomcat:9.0.83-jdk17-temurin-focal@sha256:dee778677fa37d57d7a54bec347f869734d3d34486a0c41c1cd0e5c1e947b6ae"
platform: "linux/amd64"
#arm64/v8
- tag: "jdk17-openjdk"
base: "tomcat:10.1.16-jdk17-temurin-jammy@sha256:7d930ac5ba9091aa12c1a42e3cc7c59c12c8d032e076c3713c10bb9b35227b5d"
platform: "linux/arm64/v8"

steps:
- name: Checkout
Expand Down Expand Up @@ -66,6 +69,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: false
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down Expand Up @@ -133,6 +137,7 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
platforms: ${{ matrix.platform }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
Expand Down

0 comments on commit cd53dc2

Please sign in to comment.