ci: build docker image monthly and on push to main
Some checks failed
/ publish-docker (push) Has been cancelled

This commit is contained in:
Laborratte 5 2026-04-06 02:22:13 +02:00
parent 32025a8a18
commit 6cf55c1ecb
Signed by: Laborratte5
GPG key ID: 3A30072E35202C02

View file

@ -0,0 +1,28 @@
on:
push:
branches:
- main
schedule:
- cron: '@monthly'
enable-email-notification: true
jobs:
publish-docker:
runs-on: ubuntu-act
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://code.forgejo.org/docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: https://code.forgejo.org/docker/login-action@v3
with:
registry: git.ratte.dev
username: Laborratte5
password: ${{ secrets.PACKAGE_REGISTRY_TOKEN }}
- name: Build and push
uses: https://code.forgejo.org/docker/build-push-action@v6
with:
push: true
tags: |
git.ratte.dev/laborratte5/stationeers-dedicated-server:latest