Merge pull request #64 from ropensci-review-tools/update #12
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: docker | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 0 1 * *" # 1st day of each month | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, 'docker build') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: | | |
ghcr.io/ropensci-review-tools/pkgmatch-ollama:latest |