Skip to content

Commit

Permalink
Add Docker images
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 fa421f7 commit 58dddb3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,29 @@ jobs:
steps:
- name: Check Out Repo
uses: actions/checkout@v2

- 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
- name: Get the tag name
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: chmod +x k6
- run: mv k6 k6_${{ env.TAG }}_linux_amd64
- run: cp k6 k6_${{ github.event.release.tag_name }}_linux_amd64
- uses: AButler/[email protected]
with:
files: 'k6*'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: "Build:buildx"
uses: docker/setup-buildx-action@v1
- name: "Build:login"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build:dockerimage"
uses: docker/build-push-action@v2
with:
context: .
push: true
file: Dockerfile
tags: ghcr.io/grafana/xk6-client-prometheus-remote:latest,ghcr.io/grafana/xk6-client-prometheus-remote:${{ github.event.release.tag_name }}
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ubuntu:xenial

COPY k6 .

ENTRYPOINT [ "./k6" ]

0 comments on commit 58dddb3

Please sign in to comment.