Update .github/workflows/root.yml
This commit is contained in:
parent
cd7389e347
commit
6bb57cd591
10
.github/workflows/root.yml
vendored
10
.github/workflows/root.yml
vendored
@ -4,6 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- root
|
- root
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -24,6 +26,10 @@ jobs:
|
|||||||
java-version: 21
|
java-version: 21
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
|
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||||
|
|
||||||
- name: Gradle Cache
|
- name: Gradle Cache
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
with:
|
with:
|
||||||
@ -57,10 +63,10 @@ jobs:
|
|||||||
password: ${{ secrets.PW }}
|
password: ${{ secrets.PW }}
|
||||||
|
|
||||||
- name: Build the Docker image
|
- 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
|
- 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
|
- name: Push the latest Docker image
|
||||||
run: docker push pi5:8125/jansel/feixiao:latest
|
run: docker push pi5:8125/jansel/feixiao:latest
|
Loading…
x
Reference in New Issue
Block a user