Skip to content

Merge pull request #298 from clabs/dev #299

Merge pull request #298 from clabs/dev

Merge pull request #298 from clabs/dev #299

Workflow file for this run

name: Build and publish docker image
on:
# publish on releases, e.g. v2.1.13 (image tagged as "2.1.13" - "v" prefix is removed)
release:
types: [ published ]
# publish on pushes to the main branch (image tagged as "latest")
push:
branches:
# - dev
- main
jobs:
docker_build:
runs-on: "ubuntu-24.04"
steps:
- uses: actions/checkout@v4
# https://github.com/marketplace/actions/push-to-ghcr
- name: Build and publish a Docker image for ${{ github.repository }}
uses: macbre/push-to-ghcr@master
with:
image_name: ${{ github.repository }}
image_tag: ${{ github.ref_name }}
github_token: ${{ secrets.GITHUB_TOKEN }}
dockerfile: docker/Dockerfile
- name: Notify webhook
run: |
curl -X POST -H "Content-Type: application/json" -d '{"text": "Docker image has been pushed successfully."}' ${{ secrets.DEPLOY_PROD_WEBHOOK }}