Fix repairs

This commit is contained in:
Ben Sarmiento
2023-12-07 11:53:35 +01:00
parent 35bffc12f5
commit caa42822ac
4 changed files with 48 additions and 13 deletions

View File

@@ -35,6 +35,29 @@ jobs:
- name: Cross-compile with xgo
uses: crazy-max/ghaction-xgo@v3
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
with:
xgo_version: latest
go_version: 1.21
pkg: cmd/zurg
targets: linux/amd64
dest: artifacts
prefix: zurg
v: false
x: false
race: false
ldflags: >
-s -w
-X 'github.com/debridmediamanager/zurg/internal.BuiltAt=${{ steps.prep.outputs.built_at }}'
-X 'github.com/debridmediamanager/zurg/internal.GoVersion=${{ steps.prep.outputs.go_version }}'
-X 'github.com/debridmediamanager/zurg/internal.GitCommit=${{ steps.prep.outputs.git_commit }}'
-X 'github.com/debridmediamanager/zurg/internal.Version=${{ steps.version.outputs.version }}'
buildmode: default
trimpath: true
- name: Cross-compile with xgo
uses: crazy-max/ghaction-xgo@v3
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
with:
xgo_version: latest
go_version: 1.21

View File

@@ -56,7 +56,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm/v7
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}