Use git clone instead of actions/checkout for buildah container
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1s
This commit is contained in:
@@ -12,7 +12,9 @@ jobs:
|
|||||||
image: quay.io/buildah/stable
|
image: quay.io/buildah/stable
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
git clone --depth 1 --branch "${{ github.ref_name }}" "${{ github.server_url }}/${{ github.repository }}.git" .
|
||||||
|
git checkout "${{ github.sha }}"
|
||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user