Fix builds
This commit is contained in:
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user