mirror of
https://github.com/Laborratte5/linux-iso-seeder.git
synced 2025-12-30 17:08:17 +01:00
ci: automatically build docker image
Build docker image on: - push to main branch - once every month
This commit is contained in:
parent
9d62c37042
commit
1de6df1692
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/build-docker.yaml
Normal file
24
.forgejo/workflows/build-docker.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
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
|
||||||
|
- id: create_version_string
|
||||||
|
run: echo version_tag=$(git rev-parse --short HEAD)-$(date --utc --iso-8601) >> $FORGEJO_OUTPUT
|
||||||
|
- name: Build and push
|
||||||
|
uses: https://code.forgejo.org/docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
tags: |
|
||||||
|
git.ratte.dev/laborratte5/linux-iso-seeder:latest
|
||||||
|
git.ratte.dev/laborratte5/linux-iso-seeder:${{ steps.create_version_string.outputs.version_tag }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue