Skip to content

Commit

Permalink
Merge pull request #4 from UST-QuAntiL/arm-support
Browse files Browse the repository at this point in the history
ARM support
  • Loading branch information
mbeisel authored May 17, 2024
2 parents 7fd825a + 9eec58e commit 3e2c927
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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 objective evaluation service
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/objective-evaluation-service:latest

- name: Build and push version of objective evaluation service
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/objective-evaluation-service:${{ steps.vars.outputs.tag }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM python:3.8-slim-buster
FROM python:3.9

WORKDIR /objective-function-service

Expand Down

0 comments on commit 3e2c927

Please sign in to comment.