Skip to content

Commit 9cbdc44

Browse files
authored
feat: add multiarch support (#1)
Signed-off-by: Jonathan Gonzalez V <[email protected]>
1 parent e608719 commit 9cbdc44

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,29 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13+
1314
- name: Get the reference
1415
id: get_version
1516
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
17+
18+
- name: Set up QEMU
19+
uses: docker/[email protected]
20+
with:
21+
image: tonistiigi/binfmt:qemu-v6.1.0
22+
platforms: "linux/amd64,linux/arm64,linux/ppc64le,linux/s390x"
23+
1624
- name: Set up Docker Buildx
1725
id: buildx
1826
uses: docker/setup-buildx-action@v1
19-
- name: Login to registry
20-
uses: docker/login-action@v1
27+
# - name: Login to registry
28+
# uses: docker/login-action@v1
29+
# with:
30+
# registry: quay.io
31+
# username: ${{ secrets.DOCKER_USERNAME }}
32+
# password: ${{ secrets.DOCKER_PASSWORD }}
33+
- name: Build and push
34+
uses: docker/[email protected]
2135
with:
22-
registry: quay.io
23-
username: ${{ secrets.DOCKER_USERNAME }}
24-
password: ${{ secrets.DOCKER_PASSWORD }}
25-
- name: Build
26-
run: |
27-
docker build -t quay.io/leonardoce/webtest:${{ steps.get_version.outputs.VERSION }} .
28-
- name: Push
29-
run: docker push quay.io/leonardoce/webtest:${{ steps.get_version.outputs.VERSION }}
36+
platforms: "linux/amd64,linux/arm64,linux/ppc64le,linux/s390x"
37+
push: false
38+
tags: ${{ steps.get_version.outputs.VERSION }}

0 commit comments

Comments
 (0)