-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.31 KB
/
docker-tracing.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: k6 Docker Tracing Builder
on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: grafana/xk6-client-tracing
- name: Log in to the Container registry
if: github.event_name != 'pull_request'
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push container image
if: github.event_name != 'pull_request'
uses: docker/[email protected]
with:
context: .
push: true
tags: |
ghcr.io/metrico/k6:tracing
- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: ghcr.io/metrico/k6:tracing
path: /k6-tracing
- name: Upload Custom k6
uses: actions/upload-artifact@v3
with:
path: ${{ steps.extract.outputs.destination }}/k6-tracing
name: latest
- name: Upload k6 to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.extract.outputs.destination }}/k6-tracing
asset_name: k6-tracing
tag: latest