1
0

Update .github/workflows/root.yml

This commit is contained in:
Jannik Reimers 2024-12-27 03:27:41 +01:00
parent cd7389e347
commit 6bb57cd591

View File

@ -4,6 +4,8 @@ on:
push:
branches:
- root
schedule:
- cron: "0 0 * * *"
jobs:
build:
@ -24,6 +26,10 @@ jobs:
java-version: 21
distribution: temurin
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Gradle Cache
uses: actions/cache/restore@v4
with:
@ -57,10 +63,10 @@ jobs:
password: ${{ secrets.PW }}
- name: Build the Docker image
run: docker build -t pi5:8125/jansel/feixiao:latest -t pi5:8125/jansel/feixiao:${{ gitea.run_number }} .
run: docker build -t pi5:8125/jansel/feixiao:latest -t pi5:8125/jansel/feixiao:${{ steps.date.outputs.date }} .
- name: Push the Docker image related to this workflow
run: docker push pi5:8125/jansel/feixiao:${{ gitea.run_number }}
run: docker push pi5:8125/jansel/feixiao:${{ steps.date.outputs.date }}
- name: Push the latest Docker image
run: docker push pi5:8125/jansel/feixiao:latest