Skip to content

Commit

Permalink
Put platforms in Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
thijslemmens committed Dec 1, 2022
1 parent 391a320 commit fab0919
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
pushImages:
strategy:
matrix:
architecture: [amd64, arm64]
image: ['docker.io/thijslemmens/mqtt-to-pg:latest', 'ghcr.io/thijslemmens/mqtt-to-pg/mqtt-to-pg:latest']
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -70,4 +69,4 @@ jobs:
- name: Build docker image
uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
with:
arguments: jib -Parchitecture=${{ matrix.architecture }} -Pimage=${{ matrix.image }}
arguments: jib -Pimage=${{ matrix.image }}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jib {
from {
platforms {
platform {
architecture = project.property('architecture')
architecture = 'arm64'
os = 'linux'
}
platform {
architecture = project.property('architecture')
architecture = 'amd64'
os = 'linux'
}
}
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
architecture=amd64
image=mqtt-to-pg:latest

0 comments on commit fab0919

Please sign in to comment.