chrisaka commited on
Commit
08e7501
·
1 Parent(s): a3f093d

Remove the Hugging Face deployment stage and job from the CI/CD pipeline.

Browse files
Files changed (1) hide show
  1. .gitlab-ci.yml +0 -12
.gitlab-ci.yml CHANGED
@@ -8,7 +8,6 @@
8
  stages:
9
  - test
10
  - secret-detection
11
- - deploy
12
  variables:
13
  SECRET_DETECTION_ENABLED: 'true'
14
  secret_detection:
@@ -16,14 +15,3 @@ secret_detection:
16
  include:
17
  - template: Security/Secret-Detection.gitlab-ci.yml
18
 
19
- deploy_to_huggingface:
20
- stage: deploy
21
- image: alpine:latest
22
- only:
23
- - main
24
- before_script:
25
- - apk add --no-cache git
26
- script:
27
- - if [ -z "$HF_TOKEN" ]; then echo "Error - HF_TOKEN CI/CD variable is missing or empty. Please create an Access Token in Hugging Face."; exit 1; fi
28
- - git remote add huggingface https://oauth2:${HF_TOKEN}@huggingface.co/spaces/dedalys-civ/dedalys-api || true
29
- - git push huggingface HEAD:main --force
 
8
  stages:
9
  - test
10
  - secret-detection
 
11
  variables:
12
  SECRET_DETECTION_ENABLED: 'true'
13
  secret_detection:
 
15
  include:
16
  - template: Security/Secret-Detection.gitlab-ci.yml
17