Skip to content

Commit 0c5dc63

Browse files
committed
feat: build a second binary with the Grafana secrets manager client
This is a temporary workaround to allow us to build a unstable k6 which will only be used when secrets are present for the script. In the future this should be removed and it should be included in the stable release.
1 parent e456446 commit 0c5dc63

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/push-pr-release.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ jobs:
3434
grafana/xk6 build ${{ steps.version.outputs.k6 }} \
3535
--output "dist/sm-k6-${{ matrix.goos }}-${{ matrix.goarch }}" \
3636
--with github.com/grafana/xk6-sm=.
37+
- name: Build with xk6 and gsm
38+
run: |-
39+
mkdir -p dist
40+
docker run --rm -i -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" \
41+
-e "GOOS=${{ matrix.goos }}" -e "GOARCH=${{ matrix.goarch }}" \
42+
grafana/xk6 build ${{ steps.version.outputs.k6 }} \
43+
--output "dist/sm-k6-${{ matrix.goos }}-${{ matrix.goarch }}-gsm" \
44+
--with github.com/grafana/xk6-sm=.
45+
--with github.com/grafana/gsm-api-go-client
3746
- name: Check runner architecture
3847
id: runner-info
3948
run: |-

0 commit comments

Comments
 (0)