Skip to content

container image

container image #85

name: container image
on:
workflow_dispatch:
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