38 lines
1016 B
YAML
38 lines
1016 B
YAML
name: Daily Odoo Wiki Build
|
|
|
|
on:
|
|
schedule:
|
|
# Montag bis Freitag um 18:00 Uhr
|
|
- cron: '0 18 * * 1-5'
|
|
# Erlaubt manuelles Starten des Workflows
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Deploy repository (with Dockerfile)
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Checkout Odoo Wiki repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: mint-systems/Odoo-Wiki
|
|
path: wiki-src
|
|
token: ${{ secrets.BUILDUSER_AUTHTOKEN }}
|
|
|
|
- name: Login to Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.rwcloud.ch
|
|
username: build.user
|
|
password: ${{ secrets.BUILDUSER_AUTHTOKEN }}
|
|
|
|
- name: Build and push Docker images
|
|
uses: docker/build-push-action@v6.15.0
|
|
with:
|
|
push: true
|
|
pull: true
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
tags: gitea.rwcloud.ch/mint-systems/odoo-wiki:latest |