🎪 Update CI action to support arm64

This commit is contained in:
SweetMNM 2022-06-08 08:20:08 +03:00
parent a3559526cb
commit f1c6fc3086
1 changed files with 21 additions and 16 deletions

View File

@ -35,19 +35,24 @@ jobs:
containerise: containerise:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v1 uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Log into GitHub Container Registry - name: Log into GitHub Container Registry
run: echo "${{ secrets.REGISTRY_ACCESS_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin run: echo "${{ secrets.REGISTRY_ACCESS_TOKEN }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Build and push - name: Lowercase github username for ghcr
uses: docker/build-push-action@v2 id: string
with: uses: ASzc/change-string-case-action@v1
platforms: linux/amd64 with:
push: true string: ${{ github.actor }}
tags: ghcr.io/meeb/${{ env.IMAGE_NAME }}:latest - name: Build and push
cache-from: type=registry,ref=ghcr.io/meeb/${{ env.IMAGE_NAME }}:latest uses: docker/build-push-action@v2
cache-to: type=inline with:
build-args: | platforms: linux/amd64,linux/arm64
IMAGE_NAME=${{ env.IMAGE_NAME }} push: true
tags: ghcr.io/${{ steps.string.outputs.lowercase }}/${{ env.IMAGE_NAME }}:latest
cache-from: type=registry,ref=ghcr.io/${{ steps.string.outputs.lowercase }}/${{ env.IMAGE_NAME }}:latest
cache-to: type=inline
build-args: |
IMAGE_NAME=${{ env.IMAGE_NAME }}