New Files
This commit is contained in:
29
.gitea/workflows/build-latest.yml
Normal file
29
.gitea/workflows/build-latest.yml
Normal file
@ -0,0 +1,29 @@
|
||||
name: Scheduled Docker Build to Local Registry
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3 * * *' # Ежедневно в 3:00 UTC
|
||||
workflow_dispatch: # Разрешить ручной запуск
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Build Docker image
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
tags: registry.mycloudnc.ru/alt-atomic-niri:latest
|
||||
push: false # Пока не пушим
|
||||
|
||||
- name: Push to Local Registry
|
||||
run: |
|
||||
docker push registry.mycloudnc.ru/alt-atomic-niri:latest
|
||||
shell: bash
|
Reference in New Issue
Block a user