Skip to content

Build and push demo Docker image #22

Build and push demo Docker image

Build and push demo Docker image #22

Workflow file for this run

name: Build and push demo Docker image
# Only build when the dockerfile has changed, otherwise scheduled every two weeks
# (on the 1st and 15th every month) since it's not so important to keep this image
# exactly in sync with master
on:
workflow_dispatch:
push:
branches:
- 'master'
paths:
- 'extras/docker/demo/Dockerfile'
- '.github/workflows/docker-demo.yml'
schedule:
- cron: '0 6 1,15 * *'
jobs:
demo:
name: Build demo image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3.0.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build image
uses: docker/build-push-action@v5
with:
context: .
push: true
file: extras/docker/demo/Dockerfile
platforms: linux/amd64,linux/arm64
tags: ${{ vars.REGISTRY_REPO }}/demo:latest,${{ vars.REGISTRY_REPO }}/demo:2.3-dev,${{ vars.REGISTRY_REPO }}/apache:latest,${{ vars.REGISTRY_REPO }}/apache:2.3-dev