Skip to content

Commit

Permalink
Create docker-tracing.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Nov 8, 2023
1 parent a701fd3 commit 0eff20f
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/docker-tracing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: k6 Tracing Docker 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

0 comments on commit 0eff20f

Please sign in to comment.