name: Build 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 * *' permissions: contents: read jobs: demo: name: Build demo image runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v7 - name: Set up QEMU uses: docker/setup-qemu-action@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v4 - name: Login to DockerHub uses: docker/login-action@v4 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build image uses: docker/build-push-action@v7 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.4-dev