Skip to content

Build and Publish Linux AMD64 Image #5

Build and Publish Linux AMD64 Image

Build and Publish Linux AMD64 Image #5

name: Build and Publish Linux AMD64 Image
on:
workflow_dispatch: # allows us to trigger runs manually in the GitHub UI
schedule:
- cron: '0 0 * * *' # runs nightly
jobs:
docker:
if: ${{ github.ref == format('refs/heads/{0}', vars.NIGHTLY_BRANCH) }}
runs-on: ubuntu-24.04
steps: # See https://docs.docker.com/build/ci/github-actions/multi-platform/
- name: Login to DockerHub
uses: docker/login-action@v3
with: # these are defined in the GitHub Secrets UI
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
tags: ${{ vars.DOCKERHUB_IMAGE }}:nightly-linux-amd64