Skip to content

Merge pull request #112 from metrico/feature/ch-logs-receiver #60

Merge pull request #112 from metrico/feature/ch-logs-receiver

Merge pull request #112 from metrico/feature/ch-logs-receiver #60

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/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEFAULT_BUMP: patch
RELEASE_BRANCHES: main
PRERELEASE: true
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: |
ghcr.io/metrico/qryn-otel-collector
tags: |
latest
${{ steps.tag_bump.outputs.new_tag }}
- name: Build and push
uses: docker/[email protected]
with:
context: .
file: ./cmd/otel-collector/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}