Skip to content

feat(profile): make thumbnail required if visible (#113) #26

feat(profile): make thumbnail required if visible (#113)

feat(profile): make thumbnail required if visible (#113) #26

Workflow file for this run

name: Create and publish container image
on:
push:
branches:
- "main"
tags:
- "v[0-9]+.[0-9]+.[0-9]"
- "v[0-9]+.[0-9]+.[0-9]-**"
jobs:
build-and-push-image:
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/') }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ghcr.io/eurofurence/dealer-registration
# generate Docker tags based on the following events/attributes
tags: |
type=schedule,pattern=nightly
type=edge,branch=main
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker BuildX
id: buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: network=host
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
cache-from: "type=gha"
cache-to: "type=gha,mode=max"
builder: ${{ steps.buildx.outputs.name }}
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}