Skip to content

reverse order

reverse order #54

Workflow file for this run

name: Build & Publish
on:
push:
branches:
- root
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Disable SSL verify (Temporary Fix)
run: git config --global http.sslVerify false
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- name: Gradle Cache
uses: actions/cache/restore@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Gradle (Build)
run: "./gradlew build"
- name: Gradle Cache
uses: actions/cache/save@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: pi5:8125
username: ${{ github.repository_owner }}
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 }} .

Check failure on line 63 in .github/workflows/root.yml

View workflow run for this annotation

GitHub Actions / Build & Publish

Invalid workflow file

The workflow is not valid. .github/workflows/root.yml (Line: 63, Col: 14): Unrecognized named-value: 'gitea'. Located at position 1 within expression: gitea.run_number .github/workflows/root.yml (Line: 66, Col: 14): Unrecognized named-value: 'gitea'. Located at position 1 within expression: gitea.run_number
- name: Push the Docker image related to this workflow
run: docker push pi5:8125/jansel/feixiao:${{ gitea.run_number }}
- name: Push the latest Docker image
run: docker push pi5:8125/jansel/feixiao:latest