Re-add QEMU setup for building arm/v7

This commit is contained in:
Nicolas Meienberger 2022-06-01 18:47:53 +02:00
parent e227e4d148
commit 784ae1e833
2 changed files with 17 additions and 12 deletions

View file

@ -39,6 +39,9 @@ jobs:
workflow_id: ${{ github.run_id }} workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }} access_token: ${{ github.token }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2

View file

@ -34,27 +34,29 @@ jobs:
docker: docker:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - name: Checkout
name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
-
name: Set up Docker Buildx - name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub - name: Login to DockerHub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Get tag from VERSION file - name: Get tag from VERSION file
id: meta id: meta
run: | run: |
VERSION=$(cat VERSION) VERSION=$(cat VERSION)
TAG=${VERSION} TAG=${VERSION}
echo "::set-output name=tag::${TAG}" echo "::set-output name=tag::${TAG}"
-
name: Build and push dashboard - name: Build and push dashboard
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./packages/dashboard context: ./packages/dashboard
@ -63,8 +65,8 @@ jobs:
tags: meienberger/tipi-dashboard:latest,meienberger/tipi-dashboard:${{ steps.meta.outputs.TAG }} tags: meienberger/tipi-dashboard:latest,meienberger/tipi-dashboard:${{ steps.meta.outputs.TAG }}
cache-from: type=registry,ref=meienberger/tipi-dashboard:buildcache cache-from: type=registry,ref=meienberger/tipi-dashboard:buildcache
cache-to: type=registry,ref=meienberger/tipi-dashboard:buildcache,mode=max cache-to: type=registry,ref=meienberger/tipi-dashboard:buildcache,mode=max
-
name: Build and push api - name: Build and push api
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./packages/system-api context: ./packages/system-api