Skip to content

container image

container image #71

name: container image
on:
schedule:
- cron: '0 2 * * 1'
push:
branches:
- 'main'
paths:
- 'Dockerfile'
pull_request:
paths:
- 'Dockerfile'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Login to registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/relm4/relm4/docs:latest