Fix builds

This commit is contained in:
Ben Sarmiento
2023-11-30 23:16:34 +01:00
parent 5472f7d08d
commit 02c7a6c3e8
2 changed files with 3 additions and 5 deletions

View File

@@ -57,10 +57,8 @@ jobs:
platform=$(echo $platform | sed 's/.exe//g') platform=$(echo $platform | sed 's/.exe//g')
extension=".exe" extension=".exe"
fi fi
cd artifacts cp -f "artifacts/zurg-$platform$extension" "artifacts/zurg$extension"
cp -f "zurg-$platform$extension" zurg (cd artifacts && zip -r "../compressed_artifacts/zurg-${{ steps.version.outputs.version }}-$platform.zip" "zurg$extension")
zip -r "../compressed_artifacts/zurg-${{ steps.version.outputs.version }}-$platform.zip" zurg
cd ..
done done
- name: Upload artifacts to workflow - name: Upload artifacts to workflow

View File

@@ -11,7 +11,7 @@ FROM golang:1-alpine AS builder
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN apk add --no-cache bash git go gcc musl-dev curl fuse RUN apk add --no-cache bash git go gcc musl-dev curl fuse
RUN go build -ldflags="-s -w -X 'github.com/debridmediamanager/zurg/internal.BuiltAt=${BuiltAt}' -X 'github.com/debridmediamanager/zurg/internal.GoVersion=${GoVersion}' -X 'github.com/debridmediamanager/zurg/internal.GitCommit=${GitCommit}' -X 'github.com/debridmediamanager/zurg/internal.Version=${Version}'" -o zurg cmd/zurg RUN go build -ldflags="-s -w -X 'github.com/debridmediamanager/zurg/internal.BuiltAt=${BuiltAt}' -X 'github.com/debridmediamanager/zurg/internal.GoVersion=${GoVersion}' -X 'github.com/debridmediamanager/zurg/internal.GitCommit=${GitCommit}' -X 'github.com/debridmediamanager/zurg/internal.Version=${Version}'" -o zurg ./cmd/zurg
# Obfuscation stage # Obfuscation stage
FROM alpine:3 AS obfuscator FROM alpine:3 AS obfuscator