Fix: use git clone instead of actions/checkout
Some checks failed
Build Docker Image / build (push) Failing after 20s

This commit is contained in:
root 2026-03-10 17:47:00 +01:00
parent 435a19cb4d
commit 490f6322cb

View file

@ -16,7 +16,11 @@ jobs:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
steps: steps:
- uses: actions/checkout@v4 - name: Checkout
run: |
apk add --no-cache git
git clone --branch "${GITHUB_REF_NAME}" --depth 1 \
"http://root:${{ secrets.REGISTRY_PASSWORD }}@192.168.1.100:3000/${GITHUB_REPOSITORY}.git" .
- name: Determine tag - name: Determine tag
id: vars id: vars
@ -35,7 +39,6 @@ jobs:
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.vars.outputs.tag }} \ -t ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.vars.outputs.tag }} \
-t ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }} \ -t ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }} \
. .
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ env.REGISTRY }} -u root --password-stdin echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ env.REGISTRY }} -u root --password-stdin
docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.vars.outputs.tag }} docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.vars.outputs.tag }}
docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }} docker push ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ github.sha }}