From db171c17fd7b404a2fde7750c11bec89504352a2 Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Fri, 2 Feb 2024 23:28:55 +0100 Subject: [PATCH 1/2] feat: add multi-platform build --- .github/workflows/build-branch.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-branch.yml b/.github/workflows/build-branch.yml index fb5abc5..3e5f597 100644 --- a/.github/workflows/build-branch.yml +++ b/.github/workflows/build-branch.yml @@ -10,9 +10,11 @@ on: jobs: docker: - uses: onecx/ci-common/.github/workflows/docker-build.yml@v1 + uses: onecx/ci-common/.github/workflows/docker-build.yml@test1 secrets: inherit with: + platform: 'linux/amd64,linux/arm64' + buildx: true push: false artifact: '' samoDockerFile: Dockerfile \ No newline at end of file From f2f87ede23d063baebe0e334c00dc5d80dd70f33 Mon Sep 17 00:00:00 2001 From: Andrej Petras Date: Fri, 2 Feb 2024 23:34:57 +0100 Subject: [PATCH 2/2] feat: add multi-platform build --- .github/workflows/build-branch.yml | 2 +- .github/workflows/build-pr.yml | 2 ++ .github/workflows/build.yml | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-branch.yml b/.github/workflows/build-branch.yml index 3e5f597..7822e9b 100644 --- a/.github/workflows/build-branch.yml +++ b/.github/workflows/build-branch.yml @@ -10,7 +10,7 @@ on: jobs: docker: - uses: onecx/ci-common/.github/workflows/docker-build.yml@test1 + uses: onecx/ci-common/.github/workflows/docker-build.yml@v1 secrets: inherit with: platform: 'linux/amd64,linux/arm64' diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index 476754d..9be2f34 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -10,6 +10,8 @@ jobs: uses: onecx/ci-common/.github/workflows/docker-build.yml@v1 secrets: inherit with: + platform: 'linux/amd64,linux/arm64' + buildx: true push: false artifact: '' samoDockerFile: Dockerfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 609114a..9502c2a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,8 @@ jobs: uses: onecx/ci-common/.github/workflows/docker-build.yml@v1 secrets: inherit with: + platform: 'linux/amd64,linux/arm64' + buildx: true push: true tags: '{{ .Version }},{{ .Branch }}' artifact: ''