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:
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user