From 6b096ef4bdc00569b5ddd697752361f47bbf3feb Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sat, 16 Sep 2023 21:30:41 +0200 Subject: [PATCH] test build --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5141460..4d130a75 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,6 +38,19 @@ jobs: - uses: codecov/codecov-action@v1 - if: startsWith(github.ref, 'refs/tags/v') run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + - run: | + export LD_FLAGS="-w -s -X main.Version=$VERSION -X main.BuildDate=$(date "+%F-%T") -X main.Commit=$(git rev-parse --verify HEAD) -X main.Mode=prod" + make build + sudo chown -R $UID build + make package-zip + ls -lath build + make build-docker + docker image ls + env: + DOCKER_USER: ${{ secrets.DOCKER_USER }} + DOCKER_PASS: ${{ secrets.DOCKER_PASS }} + DOCKER_GHCR_USER: ${{ secrets.DOCKER_GHCR_USER }} + DOCKER_GHCR_PASS: ${{ secrets.DOCKER_GHCR_PASS }} - if: startsWith(github.ref, 'refs/tags/v') run: | export LD_FLAGS="-w -s -X main.Version=$VERSION -X main.BuildDate=$(date "+%F-%T") -X main.Commit=$(git rev-parse --verify HEAD) -X main.Mode=prod"