mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-05-18 15:58:28 -05:00
update ci registry name
This commit is contained in:
+2
-2
@@ -10,8 +10,8 @@ publish-docker-container:
|
||||
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASSWORD"
|
||||
script:
|
||||
- |
|
||||
docker build --pull -t "$REGISTRY_IMAGE:latest" .
|
||||
docker push "$REGISTRY_IMAGE:latest"
|
||||
docker build --pull -t "$REGISTRY_IMAGE" .
|
||||
docker push "$REGISTRY_IMAGE"
|
||||
# docker build --pull -t "$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME:$CI_COMMIT_TAG" .
|
||||
# docker push "$CI_REGISTRY_IMAGE/$DOCKER_IMAGE_NAME:$CI_COMMIT_TAG"
|
||||
rules:
|
||||
|
||||
@@ -2,7 +2,11 @@ import * as k8s from '@kubernetes/client-node';
|
||||
|
||||
const getKubeConfig = () => {
|
||||
const kc = new k8s.KubeConfig();
|
||||
kc.loadFromFile('/workspace/kube-config.config'); // todo update --> use security role
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
kc.loadFromCluster();
|
||||
} else {
|
||||
kc.loadFromFile('/workspace/kube-config.config');
|
||||
}
|
||||
return kc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user