Skip to content

Matcher is using glob-like syntax, not regex #5

Matcher is using glob-like syntax, not regex

Matcher is using glob-like syntax, not regex #5

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- "**"
tags:
- '**[0-9]+-v[0-9]+.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
metabrainz/base-image
# generate Docker tags based on the following events/attributes
tags: |
type=ref,event=tag
type=ref,event=branch
type=edge,branch=master
flavor: |
latest=auto
prefix=
suffix=
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}