Skip to content

Commit

Permalink
support arm
Browse files Browse the repository at this point in the history
  • Loading branch information
salmma committed May 16, 2024
1 parent 7fd825a commit 383266a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Push docker images to Dockerhub

on:
push:
branches: main
branches:
- main
- "arm-support"
tags:
- "v*.*.*"

Expand All @@ -11,32 +13,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 383266a

Please sign in to comment.