Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
havardelnan committed Nov 18, 2024
1 parent 29d4395 commit ffd5f45
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
GH_TOKEN: ${{ secrets.VARTOKEN }}
build-app:
runs-on: ubuntu-latest
needs: bump-version
steps:
- uses: actions/checkout@v3

Expand All @@ -52,11 +53,12 @@ jobs:
${{ runner.os }}-go-
- name: Build
run: |
gh variable get V1VERSION
go get ./...
mkdir -p dist/isbuilt
CGO_ENABLED=0 go build -o dist/agent -ldflags "-w -extldflags '-static' -X internal/config.version=$ROR_VERSION -X internal/config.commit=$CI_COMMIT_SHORT_SHA" cmd/agent/main.go
touch dist/isbuilt/agent
export RORVERSION=${{ vars.V1VERSION }}
echo $ROR_VERSION
go get ./...
mkdir -p dist/isbuilt
CGO_ENABLED=0 go build -o dist/agent -ldflags "-w -extldflags '-static' -X internal/config.version=$ROR_VERSION -X internal/config.commit=$CI_COMMIT_SHORT_SHA" cmd/agent/main.go
touch dist/isbuilt/agent
- name: Archive binary
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit ffd5f45

Please sign in to comment.