Skip to content

Merge pull request #497 from hedgedoc/disable-automerge #310

Merge pull request #497 from hedgedoc/disable-automerge

Merge pull request #497 from hedgedoc/disable-automerge #310

Workflow file for this run

name: Container release
on:
push:
branches: [main, master]
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
base: [debian, alpine]
env:
# renovate: datasource=github-tags depName=hedgedoc/hedgedoc versioning=semver
HEDGEDOC_VERSION: 1.9.9
HEDGEDOC_IMAGE: quay.io/hedgedoc/hedgedoc
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set up QEMU
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 # v2
- name: Login to docker registry
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2
with:
registry: quay.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set flavor tags
run: echo "TAGS=$HEDGEDOC_IMAGE:${{ env.HEDGEDOC_VERSION }}-${{ matrix.base }},$HEDGEDOC_IMAGE:${{ matrix.base }}" >> $GITHUB_ENV
- name: Set main flavor tags
if: ${{ matrix.base == 'debian' }}
run: echo "TAGS=$TAGS,$HEDGEDOC_IMAGE:${{ env.HEDGEDOC_VERSION }},$HEDGEDOC_IMAGE:latest" >> $GITHUB_ENV
- name: Build and push image
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6
with:
context: .
file: ./${{ matrix.base }}/Dockerfile
build-args: |
VERSION=${{ env.HEDGEDOC_VERSION }}
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.TAGS }}