Fix Gitea CI configuration per troubleshooting guide
Some checks failed
CI Pipeline / Rust Format Check (push) Failing after 3s
CI Pipeline / Clippy Lints (push) Failing after 1s
CI Pipeline / Rust Unit Tests (push) Failing after 2s
CI Pipeline / Security Audit (push) Failing after 1s
CI Pipeline / Frontend Lint & Type Check (push) Failing after 2s
CI Pipeline / Build .deb & Release (push) Has been skipped
Some checks failed
CI Pipeline / Rust Format Check (push) Failing after 3s
CI Pipeline / Clippy Lints (push) Failing after 1s
CI Pipeline / Rust Unit Tests (push) Failing after 2s
CI Pipeline / Security Audit (push) Failing after 1s
CI Pipeline / Frontend Lint & Type Check (push) Failing after 2s
CI Pipeline / Build .deb & Release (push) Has been skipped
- Quote YAML 'on' key to prevent boolean parsing - Fix GITEATOKEN case sensitivity (was GITEA_TOKEN) - Update Gitea URLs to https://gitea-lxc.moon-dragon.us - Fix release step token and URL parameters Fixes based on GITEA_CI_TROUBLESHOOTING_GUIDE.md
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
name: CI Pipeline
|
||||
|
||||
on:
|
||||
"on":
|
||||
push:
|
||||
branches: [master]
|
||||
tags: ["v*"]
|
||||
@ -25,14 +25,15 @@ jobs:
|
||||
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
TOKEN="${GITHUB_TOKEN:-$GITEA_TOKEN}"
|
||||
TOKEN="${{ secrets.GITEATOKEN }}"
|
||||
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
|
||||
curl -sf -H "Authorization: token ${TOKEN}" \
|
||||
"http://192.168.2.189:3000/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
"https://gitea-lxc.moon-dragon.us/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
-o repo.tar.gz
|
||||
tar xzf repo.tar.gz --strip-components=1
|
||||
rm repo.tar.gz
|
||||
|
||||
|
||||
- name: Ensure Rust toolchain
|
||||
run: |
|
||||
if ! command -v cargo &>/dev/null; then
|
||||
@ -60,14 +61,15 @@ jobs:
|
||||
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
TOKEN="${GITHUB_TOKEN:-$GITEA_TOKEN}"
|
||||
TOKEN="${{ secrets.GITEATOKEN }}"
|
||||
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
|
||||
curl -sf -H "Authorization: token ${TOKEN}" \
|
||||
"http://192.168.2.189:3000/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
"https://gitea-lxc.moon-dragon.us/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
-o repo.tar.gz
|
||||
tar xzf repo.tar.gz --strip-components=1
|
||||
rm repo.tar.gz
|
||||
|
||||
|
||||
- name: Ensure Rust toolchain
|
||||
run: |
|
||||
if ! command -v cargo &>/dev/null; then
|
||||
@ -94,14 +96,15 @@ jobs:
|
||||
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
TOKEN="${GITHUB_TOKEN:-$GITEA_TOKEN}"
|
||||
TOKEN="${{ secrets.GITEATOKEN }}"
|
||||
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
|
||||
curl -sf -H "Authorization: token ${TOKEN}" \
|
||||
"http://192.168.2.189:3000/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
"https://gitea-lxc.moon-dragon.us/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
-o repo.tar.gz
|
||||
tar xzf repo.tar.gz --strip-components=1
|
||||
rm repo.tar.gz
|
||||
|
||||
|
||||
- name: Ensure Rust toolchain
|
||||
run: |
|
||||
if ! command -v cargo &>/dev/null; then
|
||||
@ -127,14 +130,15 @@ jobs:
|
||||
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
TOKEN="${GITHUB_TOKEN:-$GITEA_TOKEN}"
|
||||
TOKEN="${{ secrets.GITEATOKEN }}"
|
||||
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
|
||||
curl -sf -H "Authorization: token ${TOKEN}" \
|
||||
"http://192.168.2.189:3000/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
"https://gitea-lxc.moon-dragon.us/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
-o repo.tar.gz
|
||||
tar xzf repo.tar.gz --strip-components=1
|
||||
rm repo.tar.gz
|
||||
|
||||
|
||||
- name: Ensure Rust toolchain
|
||||
run: |
|
||||
if ! command -v cargo &>/dev/null; then
|
||||
@ -165,14 +169,15 @@ jobs:
|
||||
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
TOKEN="${GITHUB_TOKEN:-$GITEA_TOKEN}"
|
||||
TOKEN="${{ secrets.GITEATOKEN }}"
|
||||
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
|
||||
curl -sf -H "Authorization: token ${TOKEN}" \
|
||||
"http://192.168.2.189:3000/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
"https://gitea-lxc.moon-dragon.us/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
-o repo.tar.gz
|
||||
tar xzf repo.tar.gz --strip-components=1
|
||||
rm repo.tar.gz
|
||||
|
||||
|
||||
- name: Install Node.js dependencies
|
||||
working-directory: frontend
|
||||
run: npm ci
|
||||
@ -202,14 +207,15 @@ jobs:
|
||||
|
||||
- name: Checkout repository
|
||||
run: |
|
||||
TOKEN="${GITHUB_TOKEN:-$GITEA_TOKEN}"
|
||||
TOKEN="${{ secrets.GITEATOKEN }}"
|
||||
REPO="${GITHUB_REPOSITORY:-echo/linux_patch_manager}"
|
||||
curl -sf -H "Authorization: token ${TOKEN}" \
|
||||
"http://192.168.2.189:3000/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
"https://gitea-lxc.moon-dragon.us/api/v1/repos/${REPO}/archive/${GITHUB_SHA}.tar.gz" \
|
||||
-o repo.tar.gz
|
||||
tar xzf repo.tar.gz --strip-components=1
|
||||
rm repo.tar.gz
|
||||
|
||||
|
||||
- name: Ensure Rust toolchain
|
||||
run: |
|
||||
if ! command -v cargo &>/dev/null; then
|
||||
@ -265,6 +271,5 @@ jobs:
|
||||
--repo "${REPO}" \
|
||||
--tag "${REF_NAME}" \
|
||||
--title "Release ${REF_NAME}" \
|
||||
--asset "${DEB}" \
|
||||
--token "${GITHUB_TOKEN:-$GITEA_TOKEN}" \
|
||||
--gitea-url "http://192.168.2.189:3000"
|
||||
--token "${{ secrets.GITEATOKEN }}" \
|
||||
--gitea-url "https://gitea-lxc.moon-dragon.us"
|
||||
|
||||
Reference in New Issue
Block a user