fix build switch image

Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
Ronni Skansing
2025-08-21 17:31:49 +02:00
parent 0f09205814
commit 90eef0ab4f
2 changed files with 6 additions and 6 deletions

View File

@@ -47,10 +47,10 @@ jobs:
-v "$(pwd)":/app \
-w /app/backend \
-e CGO_ENABLED=1 \
golang:alpine \
sh -c "apk add --no-cache gcc musl-dev && go build -trimpath \
golang:1.24 \
go build -trimpath \
-ldflags='-X github.com/phishingclub/phishingclub/version.hash=ph${{ steps.get_version.outputs.HASH }} -X github.com/phishingclub/phishingclub/version.version=${{ steps.get_version.outputs.VERSION }}' \
-tags production -o ../build/phishingclub main.go"
-tags production -o ../build/phishingclub main.go
- name: Fix build directory permissions
run: |

View File

@@ -45,10 +45,10 @@ jobs:
-v "$(pwd)":/app \
-w /app/backend \
-e CGO_ENABLED=1 \
golang:alpine \
sh -c "apk add --no-cache gcc musl-dev && go build -trimpath \
golang:1.24 \
go build -trimpath \
-ldflags='-X github.com/phishingclub/phishingclub/version.hash=ph${{ steps.get_version.outputs.HASH }} -X github.com/phishingclub/phishingclub/version.version=${{ steps.get_version.outputs.VERSION }}' \
-tags production -o ../build/phishingclub main.go"
-tags production -o ../build/phishingclub main.go
- name: Fix build directory permissions
run: |