Skip to content

Build and Publish Image #475

Build and Publish Image

Build and Publish Image #475

name: Build and Publish Image
on:
workflow_dispatch: # allows us to trigger runs manually in the GitHub UI
schedule:
- cron: '0 0 * * *' # runs nightly
jobs:
docker:
runs-on: ubuntu-latest
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 QEMU
uses: docker/setup-qemu-action@v3
- 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,linux/arm64
push: true
tags: nodejs/devcontainer:nightly