Skip to content

Docker Nightly

Docker Nightly #15

name: Docker Nightly
on:
# This can be used to automatically publish nightlies at UTC nighttime
schedule:
- cron: '0 1 * * *' # run at 1 AM UTC
# This can be used to allow manually triggering nightlies from the web interface
workflow_dispatch:
jobs:
docker:
if: github.repository_owner == 'McPringle'
runs-on: ubuntu-latest
name: Docker Nightly
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: mcpringle/apus:nightly