neiam
/apollos_crib
It's Apollo's Crib
public · Issues · Pulls 1 · Labels · Forks · Compare · Actions failure · Badges · Packages
⭐
Log in to mark this repository.
...
0bd853f · gmorell · 2025-04-07 18:21
Files changed
modified
.gitlab-ci.yml
+8
−1
@@ -18,6 +18,14 @@
| 18 | 18 | # |
| 19 | 19 | # only: |
| 20 | 20 | # - master |
| 21 | +before_script: | |
| 22 | + ## | |
| 23 | + ## Assuming you created the SSH_KNOWN_HOSTS file type CI/CD variable, uncomment the | |
| 24 | + ## following two lines. | |
| 25 | + ## | |
| 26 | + - mkdir -p ~/.ssh | |
| 27 | + - cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts | |
| 28 | + - chmod 644 ~/.ssh/known_hosts | |
| 21 | 29 | |
| 22 | 30 | build-master: |
| 23 | 31 | retry: 1 |
@@ -28,6 +36,5 @@ build-master:
| 28 | 36 | only: |
| 29 | 37 | - master |
| 30 | 38 | script: |
| 31 | −# - ssh-keyscan -t rsa github.com >> ~/.ssh/ | |
| 32 | 39 | - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json |
| 33 | 40 | - /kaniko/executor --force --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE --registry-mirror us0.regi.kube.gmp.io |
Parents: 4f5de0c