forked from mtusi2026/mtusi2026lab2
fix: use public Gitea checkout URL
This commit is contained in:
@@ -16,7 +16,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout exact commit
|
||||||
|
run: |
|
||||||
|
git init .
|
||||||
|
git remote add origin https://gitea.privcloud.tech/${{ github.repository }}.git
|
||||||
|
git fetch --depth=1 origin ${{ github.sha }}
|
||||||
|
git checkout --detach FETCH_HEAD
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -71,8 +76,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Container logs
|
- name: Container logs
|
||||||
if: failure()
|
if: failure()
|
||||||
run: docker compose logs --no-color --tail=200
|
run: if [ -f compose.yaml ]; then docker compose logs --no-color --tail=200; fi
|
||||||
|
|
||||||
- name: Stop local stack
|
- name: Stop local stack
|
||||||
if: always()
|
if: always()
|
||||||
run: docker compose --profile tests down -v --remove-orphans
|
run: if [ -f compose.yaml ]; then docker compose --profile tests down -v --remove-orphans; fi
|
||||||
|
|||||||
@@ -17,7 +17,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout exact commit
|
||||||
|
run: |
|
||||||
|
git init .
|
||||||
|
git remote add origin https://gitea.privcloud.tech/${{ github.repository }}.git
|
||||||
|
git fetch --depth=1 origin ${{ github.sha }}
|
||||||
|
git checkout --detach FETCH_HEAD
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -56,7 +61,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Stop release stack
|
- name: Stop release stack
|
||||||
if: always()
|
if: always()
|
||||||
run: docker compose --profile tests down -v --remove-orphans
|
run: if [ -f compose.yaml ]; then docker compose --profile tests down -v --remove-orphans; fi
|
||||||
|
|
||||||
- name: Configure SSH
|
- name: Configure SSH
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user