Skip to content

chore(deps): bump docker/metadata-action from 5 to 6 (#78) #27

chore(deps): bump docker/metadata-action from 5 to 6 (#78)

chore(deps): bump docker/metadata-action from 5 to 6 (#78) #27

Workflow file for this run

name: Build and Publish Images
on:
workflow_dispatch:
push:
branches: [main]
tags: ['v*']
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: application-profiler-jvm
dockerfile: docker/jvm/alpine/Dockerfile
- image: application-profiler-bpf
dockerfile: docker/bpf/Dockerfile
- image: application-profiler-perf
dockerfile: docker/perf/Dockerfile
- image: application-profiler-python
dockerfile: docker/python/Dockerfile
- image: application-profiler-ruby
dockerfile: docker/ruby/Dockerfile
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log in to GHCR
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Compute tags
id: meta
uses: docker/metadata-action@v6
with:
images: ghcr.io/nudgebee/${{ matrix.image }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=,format=short
- name: Build and push ${{ matrix.image }}
uses: docker/build-push-action@v7
with:
context: .
file: ${{ matrix.dockerfile }}
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}