lidarr-true-singles/.github/workflows/build.yml

30 lines
810 B
YAML

---
name: "📦 Publish Docker Container"
on:
push:
branches: [master, main]
env:
PAT: ${{ secrets.PAT }}
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip publish]')"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Build the Docker Image
run: docker build . --file Dockerfile --tag chase/lidarr-true-singles:latest --tag git.chse.dev/chase/lidarr-true-singles:latest
- name: Login to Container Registry
uses: docker/login-action@v2
with:
registry: git.chse.dev
username: chase
password: ${{ secrets.PAT }}
- name: Push the Docker Image to Container Registry
run: docker push git.chse.dev/chase/lidarr-true-singles:latest