Skip to content

Merge pull request #108 from metrico/feature/traces_improve #58

Merge pull request #108 from metrico/feature/traces_improve

Merge pull request #108 from metrico/feature/traces_improve #58

Workflow file for this run

name: Docker Build ghcr
on:
push:
branches:
- main
paths-ignore:
- '**.md'
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: tag_bump
name: Bump version and push tag
uses: anothrNick/github-tag-action@1.55.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: main
PRERELEASE: true
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4.1.1
with:
images: |
ghcr.io/metrico/qryn-otel-collector
tags: |
latest
${{ steps.tag_bump.outputs.new_tag }}
- name: Build and push
uses: docker/build-push-action@v3.2.0
with:
context: .
file: ./cmd/otel-collector/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}