Browse Source

Only build arm64 image and tag using github actions

pull/1134/head
Anders Sparrevohn 3 years ago
parent
commit
af3c024d19
  1. 1
      .github/workflows/build-code.yml
  2. 6
      .github/workflows/docker-image.yml

1
.github/workflows/build-code.yml

@ -2,7 +2,6 @@ name: Build code
on: on:
workflow_dispatch: workflow_dispatch:
pull_request:
jobs: jobs:
build: build:

6
.github/workflows/docker-image.yml

@ -21,9 +21,7 @@ jobs:
with: with:
images: grobut939/ghostfolio images: grobut939/ghostfolio
tags: | tags: |
type=ref,event=pr type=raw,value=arm64
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Set up QEMU - name: Set up QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v2
@ -43,7 +41,7 @@ jobs:
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: . context: .
platforms: linux/amd64,linux/arm64 platforms: linux/arm64
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.output.labels }} labels: ${{ steps.meta.output.labels }}

Loading…
Cancel
Save