Skip to content

Nightly

Nightly #323

Workflow file for this run

name: Nightly
on:
push:
branches:
- 'main'
paths:
- '.github/workflows/nightly.yml'
- 'Dockerfile.nightly'
release:
types: [created]
schedule:
- cron: '0 4 * * *'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Log In at ghcr.io
run: echo "${{secrets.GITHUB_TOKEN}}" | docker login ghcr.io -u msrd0 --password-stdin
- name: Build and Push image to ghcr.io
run: |
image="ghcr.io/msrd0/cargo-doc2readme"
tag="$image:nightly"
echo "==> Building docker image"
docker build . --pull --tag "$tag" -f Dockerfile.nightly
echo "==> Pushing docker image"
docker push "$tag"