Nightly #694
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |