Skip to content

Add health controller for monitoring purposes #48

Add health controller for monitoring purposes

Add health controller for monitoring purposes #48

Workflow file for this run

on:
release:
types: [published]
pull_request:
types: [opened, synchronize, reopened]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghentcdh/dbbe
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=registry,ref=ghentcdh/dbbe:buildcache
cache-to: type=registry,ref=ghentcdh/dbbe:buildcache,mode=max