Skip to content

Commit

Permalink
chore: multiarch docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
matzegebbe committed Jun 16, 2024
1 parent b31953d commit a0e70e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 24 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker Login
uses: docker/[email protected]
with:
Expand All @@ -31,3 +37,11 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
20 changes: 0 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,3 @@ archives:
files:
- none*

release:
draft: false
prerelease: false

dockers:
- id: linux-amd64
goos: linux
goarch: amd64
dockerfile: Dockerfile-goreleaser
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.name={{ .ProjectName }}"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.source={{ .GitURL }}"
- "--platform=linux/amd64"
image_templates:
- "ghcr.io/matzegebbe/web-jwks-validator:v{{ .Version }}"

4 changes: 0 additions & 4 deletions Dockerfile-goreleaser

This file was deleted.

0 comments on commit a0e70e1

Please sign in to comment.