Skip to content

Commit 342d56c

Browse files
committed
feat: multi-platform image publishing
1 parent 2e83524 commit 342d56c

File tree

8 files changed

+584
-36
lines changed

8 files changed

+584
-36
lines changed

.github/workflows/publish-release.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,21 @@ jobs:
1919
with:
2020
java-version: '17'
2121
distribution: 'temurin'
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
- name: Setup Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
- name: Package
27+
run: |
28+
mvn -Pbuild-frontend clean package
29+
- name: Docker Hub Login
30+
run: |
31+
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
2232
- name: Build and Push
2333
run: |
24-
mvn -Pbuild-frontend,native,k8s clean package k8s:build k8s:push \
25-
-Dcontainer.image.tag=${GITHUB_REF#refs/tags/v} \
26-
-Djkube.docker.push.username=${{ secrets.DOCKER_USERNAME }} \
27-
-Djkube.docker.push.password=${{ secrets.DOCKER_PASSWORD }}
34+
docker buildx build \
35+
--push \
36+
-f src/main/docker/Dockerfile.build \
37+
--tag marcnuri/yakd:${GITHUB_REF#refs/tags/v} \
38+
--platform linux/amd64,linux/arm64 \
39+
.

.github/workflows/publish-snapshot.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,21 @@ jobs:
1919
with:
2020
java-version: '17'
2121
distribution: 'temurin'
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v3
24+
- name: Setup Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
- name: Package
27+
run: |
28+
mvn -Pbuild-frontend clean package
29+
- name: Docker Hub Login
30+
run: |
31+
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
2232
- name: Build and Push
2333
run: |
24-
mvn -Pbuild-frontend,native,k8s clean package k8s:build k8s:push \
25-
-Dcontainer.image.tag=snapshot \
26-
-Djkube.docker.push.username=${{ secrets.DOCKER_USERNAME }} \
27-
-Djkube.docker.push.password=${{ secrets.DOCKER_PASSWORD }}
34+
docker buildx build \
35+
--push \
36+
-f src/main/docker/Dockerfile.build \
37+
--tag marcnuri/yakd:snapshot \
38+
--platform linux/amd64,linux/arm64 \
39+
.

.mvn/wrapper/maven-wrapper.jar

61.1 KB
Binary file not shown.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.2/apache-maven-3.9.2-bin.zip
18+
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

mvnw

Lines changed: 308 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)