Update .gitlab-ci.yml file
This commit is contained in:
+2
-6
@@ -1,12 +1,8 @@
|
|||||||
stages:
|
|
||||||
- sync
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GIT_STRATEGY: none
|
GIT_STRATEGY: none
|
||||||
|
|
||||||
# Define job to clone GitHub repository
|
# Define job to clone GitHub repository
|
||||||
clone_source:
|
clone_source_daily:
|
||||||
stage: sync
|
|
||||||
# Use an appropriate GitLab runner image
|
# Use an appropriate GitLab runner image
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
script:
|
script:
|
||||||
@@ -14,5 +10,5 @@ clone_source:
|
|||||||
- git clone https://th-schwarz:$GITHUB_PERSONAL_ACCESS_TOKEN@github.com/th-schwarz/CloudflareDNS-java.git synced-repo
|
- git clone https://th-schwarz:$GITHUB_PERSONAL_ACCESS_TOKEN@github.com/th-schwarz/CloudflareDNS-java.git synced-repo
|
||||||
- echo "Repository cloned successfully from GitHub."
|
- echo "Repository cloned successfully from GitHub."
|
||||||
rules:
|
rules:
|
||||||
- cron: "*/daily"
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user