linux-iso-seeder/.forgejo/workflows/build-docker.yaml
Laborratte5 f8acee1fa3
Some checks failed
/ publish-docker (push) Failing after 54s
ci: test if ubuntu-latest works as action image
2025-11-15 18:05:29 +01:00

32 lines
982 B
YAML

on:
push:
branches:
- main
- forgejo-action
schedule:
- cron: '@monthly'
enable-email-notification: true
jobs:
publish-docker:
runs-on: ubuntu-latest
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: git.ratte.dev
username: Laborratte5
password: ${{ secrets.PACKAGE_REGISTRY_TOKEN }}
- id: create_version_string
run: echo version_tag=$(git rev-parse --short HEAD)-$(date --utc --iso-8601) >> $FORGEJO_OUTPUT
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: |
git.ratte.dev/laborratte5/linux-iso-seeder:latest
git.ratte.dev/laborratte5/linux-iso-seeder:${{ steps.create_version_string.outputs.version_tag }}