This commit is contained in:
@@ -16,9 +16,18 @@ jobs:
|
|||||||
runs-on: nix
|
runs-on: nix
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout via Native Git
|
- name: Checkout via Native Git
|
||||||
|
env:
|
||||||
|
GITEA_URL: ${{ github.server_url }}
|
||||||
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
REPO: ${{ github.repository }}
|
||||||
|
SHA: ${{ github.sha }}
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://token:${{ secrets.GITHUB_TOKEN }}@${{ format('{0}', replace(github.server_url, 'https://', '')) }}/${{ github.repository }}.git .
|
STRIPPED_URL=$(echo $GITEA_URL | sed -e 's|^https://||' -e 's|^http://||')
|
||||||
git checkout ${{ github.sha }}
|
echo "Cloning from: $STRIPPED_URL"
|
||||||
|
# Perform the clone
|
||||||
|
git clone --depth 1 "https://token:${TOKEN}@${STRIPPED_URL}/${REPO}.git" .
|
||||||
|
# Checkout the specific commit
|
||||||
|
git checkout $SHA
|
||||||
|
|
||||||
- name: Build Docker Image via Nix Flake
|
- name: Build Docker Image via Nix Flake
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user