build new k6 image #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verification Build | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
# docker run --rm -it -u "$(id -u):$(id -g)" -v "${PWD}:/xk6" grafana/xk6 build v0.43.1 \ | ||
# --with github.com/mostafa/[email protected] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.22' # The Go version to download (if necessary) and use. | ||
# - name: build k6 v2 | ||
# uses: addnab/docker-run-action@v3 | ||
# with: | ||
# image: grafana/xk6 | ||
# options: --rm -v ${{ github.workspace }}:/xk6 -u $(id -u):$(id -g) | ||
# run: | | ||
# xk6 build --with github.com/LeonAdato/xk6-output-statsd | ||
- name: install xk6 | ||
run: go install go.k6.io/xk6/cmd/xk6@latest | ||
- name: create k6 ececutable | ||
run: xk6 build --with github.com/LeonAdato/xk6-output-statsd | ||
- name: creats k6 ececutable | ||
run: ls -lah | ||
- name: build image | ||
docker build . | ||