Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel González Lopes <[email protected]>
  • Loading branch information
dgzlopes committed Sep 30, 2021
1 parent 58dddb3 commit 413ed97
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,32 @@ jobs:
steps:
- name: Check Out Repo
uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.16.7'
- run: go install go.k6.io/xk6/cmd/xk6@latest
- run: xk6 build --with github.com/grafana/xk6-client-prometheus-remote@latest
- run: chmod +x k6
- run: cp k6 k6_${{ github.event.release.tag_name }}_linux_amd64
- uses: AButler/[email protected]
- name: Install xk6
run: go install go.k6.io/xk6/cmd/xk6@latest
- name: Build a new k6 binary with the remote write extension
run: xk6 build --with github.com/grafana/xk6-client-prometheus-remote@latest
- name: Change permissions of the binary
run: chmod +x k6
- name: Duplicate binary
run: cp k6 k6_rw_${{ github.event.release.tag_name }}_linux_amd64
- name: Upload artifacts to the release
uses: AButler/[email protected]
with:
files: 'k6*'
files: 'k6_*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: "Build:buildx"
- name: "Docker: Set up buildx"
uses: docker/setup-buildx-action@v1
- name: "Build:login"
- name: "Docker: Login into GH registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build:dockerimage"
- name: "Docker: Build and push image"
uses: docker/build-push-action@v2
with:
context: .
Expand Down

0 comments on commit 413ed97

Please sign in to comment.