Skip to content

Commit

Permalink
support arm
Browse files Browse the repository at this point in the history
  • Loading branch information
salmma authored May 16, 2024
1 parent c7458b0 commit b87024c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,34 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
- name: Set output
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push latest of quantum-circuit-generator
if: ${{ steps.vars.outputs.tag == 'main' }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: planqk/quantum-circuit-generator:latest

- name: Build and push version of quantum-circuit-generator
if: ${{ steps.vars.outputs.tag != 'main' }}
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: planqk/quantum-circuit-generator:${{ steps.vars.outputs.tag }}

0 comments on commit b87024c

Please sign in to comment.