Provide a /livez endpoint for monitoring #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docker Images | |
on: [push] | |
jobs: | |
build-docker-image: | |
name: Build Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v3 | |
- name: Login to ghcr | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Convert GITHUB_REPOSITORY into lowercase | |
run: | | |
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV} | |
- name: Build and push Docker Image | |
run: | | |
docker build \ | |
--tag "ghcr.io/${REPO}:latest" \ | |
--tag "ghcr.io/${REPO}:latest-$(date +'%Y%m%d-%H%M%S')" \ | |
--push \ | |
--file Dockerfile \ | |
--build-arg FEATURES=dynamic,ao \ | |
. |