fix: replace actions/checkout with git clone to avoid SSL cert errors
The Forgejo runner's container images lack CA certificates, causing actions/checkout@v4 to fail on SSL verification. Use direct git clone (same approach as the test job) for release and docker jobs.
This commit is contained in:
parent
1b48702295
commit
3601de3600
1 changed files with 9 additions and 7 deletions
|
|
@ -54,12 +54,11 @@ jobs:
|
||||||
new_version: ${{ steps.version.outputs.new_version }}
|
new_version: ${{ steps.version.outputs.new_version }}
|
||||||
skip: ${{ steps.version.outputs.skip }}
|
skip: ${{ steps.version.outputs.skip }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install dependencies
|
- name: Install dependencies and checkout
|
||||||
run: apt-get update && apt-get install -y --no-install-recommends bash git python3
|
run: |
|
||||||
|
apt-get update && apt-get install -y --no-install-recommends bash git python3
|
||||||
- uses: actions/checkout@v4
|
git clone ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
|
||||||
with:
|
git checkout ${GITHUB_SHA}
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Determine version bump
|
- name: Determine version bump
|
||||||
id: version
|
id: version
|
||||||
|
|
@ -182,7 +181,10 @@ jobs:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
options: --privileged
|
options: --privileged
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout repository
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git .
|
||||||
|
git checkout ${GITHUB_SHA}
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue