Skip to content

Commit

Permalink
feat: add multiarch support (#1)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Gonzalez V <jonathan.abdiel@gmail.com>
  • Loading branch information
sxd committed Jun 23, 2022
1 parent e608719 commit 9cbdc44
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,29 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get the reference
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

- name: Set up QEMU
uses: docker/setup-qemu-action@v2.0.0
with:
image: tonistiigi/binfmt:qemu-v6.1.0
platforms: "linux/amd64,linux/arm64,linux/ppc64le,linux/s390x"

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Login to registry
uses: docker/login-action@v1
# - name: Login to registry
# uses: docker/login-action@v1
# with:
# registry: quay.io
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3.0.0
with:
registry: quay.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build
run: |
docker build -t quay.io/leonardoce/webtest:${{ steps.get_version.outputs.VERSION }} .
- name: Push
run: docker push quay.io/leonardoce/webtest:${{ steps.get_version.outputs.VERSION }}
platforms: "linux/amd64,linux/arm64,linux/ppc64le,linux/s390x"
push: false
tags: ${{ steps.get_version.outputs.VERSION }}

0 comments on commit 9cbdc44

Please sign in to comment.