Skip to content

Merge pull request #31 from nlnwa/dependabot/github_actions/actions/c… #83

Merge pull request #31 from nlnwa/dependabot/github_actions/actions/c…

Merge pull request #31 from nlnwa/dependabot/github_actions/actions/c… #83

Workflow file for this run

name: Test release
on: push
env:
REGISTRY: ghcr.io
jobs:
build:
name: Create and release docker image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
image: [solrwayback, warc-indexer]
steps:
- name: Code checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Extract metadata (tags, labels, version) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.image }}
tags: |
type=semver,pattern={{version}}
type=ref,event=branch
type=ref,event=pr
- name: Build and do NOT push Docker image
uses: docker/build-push-action@v4
with:
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: Dockerfile.${{ matrix.image }}