Skip to content

feature: enable agent update #16

feature: enable agent update

feature: enable agent update #16

Workflow file for this run

---
name: release
on: # yamllint disable-line rule:truthy
push:
tags:
- '*'
jobs:
build:
name: Build and push Docker image to GitHub Container registry
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout the repository
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create Docker image labels and tags
id: meta
uses: docker/metadata-action@v5.10.0
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
with:
images: ghcr.io/tschaefer/finch${{ github.tag }}
- name: Build and push Docker image
uses: docker/build-push-action@v6.18.0
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=The Minimal Observability Infrastructure.