Skip to content

github packages

github packages #125

Workflow file for this run

name: github packages
on:
# Rebuild the container once every week
schedule:
- cron: '0 0 * * 1'
push:
branches:
- "master"
paths:
- "Dockerfile"
pull_request:
paths:
- "Dockerfile"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-20.04
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
- name: Push to GitHub Packages
uses: docker/build-push-action@v5
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ghcr.io/${{ github.repository }}/core:latest