Skip to content

Commit

Permalink
don't use matrix for build
Browse files Browse the repository at this point in the history
  • Loading branch information
andreygubarev committed Jun 10, 2023
1 parent 12f9246 commit 67a14ae
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,13 @@ env:
IMAGE_REGISTRY: ghcr.io
IMAGE_NAMESPACE: andreygubarev
IMAGE_NAME: headscale
IMAGE_PLATFORMS: linux/amd64,linux/arm64

jobs:
build:
name: Build and push multi-arch image
runs-on: ubuntu-latest

strategy:
matrix:
platforms: [linux/amd64, linux/arm64]

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -48,9 +45,9 @@ jobs:
fi
- name: Build and push
uses: docker/build-push-action@1104d471370f9806843c095c1db02b5a90c5f8b6
uses: docker/build-push-action@4
with:
context: .
push: true
platforms: ${{ matrix.platforms }}
platforms: ${{ env.IMAGE_PLATFORMS }}
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/${{ env.IMAGE_NAME }}:${{ steps.get_tags.outputs.TAG }}

0 comments on commit 67a14ae

Please sign in to comment.