fix(ci): replace actions/checkout with git clone + GIT_SSL_NO_VERIFY to bypass self-signed cert
This commit is contained in:
@@ -30,7 +30,15 @@ jobs:
|
|||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
env:
|
||||||
|
GIT_SSL_NO_VERIFY: "1"
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 \
|
||||||
|
"https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
|
||||||
|
.
|
||||||
|
git fetch --depth 1 origin "${{ github.sha }}"
|
||||||
|
git checkout "${{ github.sha }}"
|
||||||
|
shell: sh
|
||||||
|
|
||||||
- name: Cache npm dependencies
|
- name: Cache npm dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -56,7 +64,15 @@ jobs:
|
|||||||
image: node:22-alpine
|
image: node:22-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
env:
|
||||||
|
GIT_SSL_NO_VERIFY: "1"
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 \
|
||||||
|
"https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
|
||||||
|
.
|
||||||
|
git fetch --depth 1 origin "${{ github.sha }}"
|
||||||
|
git checkout "${{ github.sha }}"
|
||||||
|
shell: sh
|
||||||
|
|
||||||
- name: Cache npm dependencies
|
- name: Cache npm dependencies
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
@@ -96,7 +112,16 @@ jobs:
|
|||||||
url: ${{ vars.PRODUCTION_URL }}
|
url: ${{ vars.PRODUCTION_URL }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
env:
|
||||||
|
GIT_SSL_NO_VERIFY: "1"
|
||||||
|
run: |
|
||||||
|
apk add --no-cache git
|
||||||
|
git clone --depth 1 \
|
||||||
|
"https://x-access-token:${GITEA_TOKEN}@${GITEA_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
|
||||||
|
.
|
||||||
|
git fetch --depth 1 origin "${{ github.sha }}"
|
||||||
|
git checkout "${{ github.sha }}"
|
||||||
|
shell: sh
|
||||||
|
|
||||||
- name: Install SSH and rsync
|
- name: Install SSH and rsync
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user