Skip to content

Commit 9b80699

Browse files
authored
chore: set GIT_STRATEGY to none for jobs need no repo code in GitLab CI/CD (#374)
1 parent bf6a2b2 commit 9b80699

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

.gitlab/workflows/commitlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ commitlint:
1414
echo "$CI_MERGE_REQUEST_TITLE" | commitlint
1515
fi
1616
stage: ci
17+
variables:
18+
GIT_STRATEGY: none

.gitlab/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ release-publish:
2323
script:
2424
- echo "Running the release job."
2525
stage: release
26+
variables:
27+
GIT_STRATEGY: none
2628
container-publish:
2729
image: docker:25.0.3@sha256:0d70c541ee98e66b8f7ece8c0e9f7910732466e337a9087c2ac2868ef0775092
2830
needs:
@@ -91,3 +93,5 @@ pages:
9193
script:
9294
- echo "Running the pages job."
9395
stage: release
96+
variables:
97+
GIT_STRATEGY: none

.gitlab/workflows/renovate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ renovate:
99
script: renovate $RENOVATE_EXTRA_FLAG
1010
stage: build
1111
variables:
12+
GIT_STRATEGY: none
1213
LOG_LEVEL: debug
1314
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier"]'
1415
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate

template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/commitlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ commitlint:
1414
echo "$CI_MERGE_REQUEST_TITLE" | commitlint
1515
fi
1616
stage: ci
17+
variables:
18+
GIT_STRATEGY: none

template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/release.yml.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ release-publish:
2424
script:
2525
- echo "Running the release job."
2626
stage: release
27+
variables:
28+
GIT_STRATEGY: none
2729
container-publish:
2830
image: docker:25.0.3@sha256:0d70c541ee98e66b8f7ece8c0e9f7910732466e337a9087c2ac2868ef0775092
2931
needs:
@@ -102,3 +104,5 @@ pages:
102104
script:
103105
- echo "Running the pages job."
104106
stage: release
107+
variables:
108+
GIT_STRATEGY: none

template/[% if repo_host_type == 'gitlab.com' or repo_host_type == 'gitlab-self-managed' %].gitlab[% endif %]/workflows/renovate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ renovate:
99
script: renovate $RENOVATE_EXTRA_FLAG
1010
stage: build
1111
variables:
12+
GIT_STRATEGY: none
1213
LOG_LEVEL: debug
1314
RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS: '["^git", "^pip", "^copier"]'
1415
RENOVATE_BASE_DIR: $CI_PROJECT_DIR/renovate

0 commit comments

Comments
 (0)