Loading .gitlab-ci.yml 0 → 100644 +58 −0 Original line number Diff line number Diff line stages: - test - build variables: GIT_STRATEGY: clone HELM_IMAGE: code.ornl.gov:4567/rse/images/kubectl:1.23.3-debian-10-r13_helm-3.8.1 # This import is for the func_rse_docker_* functions before_script: - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - source rse-bash-modules.sh - func_rse_docker_cleanup after_script: - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O - source rse-bash-modules.sh - func_rse_docker_cleanup - sudo chown -R gitlab-runner . helm-file-test: stage: test script: - docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull ${HELM_IMAGE} - > docker run --rm --name helm -u root:root --workdir /mnt -v $PWD:/mnt ${HELM_IMAGE} helm package rdb tags: - rse-multi-builder helm-file-build: stage: build script: - docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull ${HELM_IMAGE} - > docker run --rm --name helm -u root:root --workdir /mnt -v $PWD:/mnt ${HELM_IMAGE} helm package rdb - > fname=`ls rdb*.tgz` curl --fail --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@${fname}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CI_COMMIT_REF_NAME}/charts" rules: - when: manual tags: - rse-multi-builder Loading
.gitlab-ci.yml 0 → 100644 +58 −0 Original line number Diff line number Diff line stages: - test - build variables: GIT_STRATEGY: clone HELM_IMAGE: code.ornl.gov:4567/rse/images/kubectl:1.23.3-debian-10-r13_helm-3.8.1 # This import is for the func_rse_docker_* functions before_script: - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - source rse-bash-modules.sh - func_rse_docker_cleanup after_script: - curl https://code.ornl.gov/rse-deployment/rse-sharables/raw/master/rse-bash-modules.sh -O - source rse-bash-modules.sh - func_rse_docker_cleanup - sudo chown -R gitlab-runner . helm-file-test: stage: test script: - docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull ${HELM_IMAGE} - > docker run --rm --name helm -u root:root --workdir /mnt -v $PWD:/mnt ${HELM_IMAGE} helm package rdb tags: - rse-multi-builder helm-file-build: stage: build script: - docker login --username=$CI_REGISTRY_USER --password=$CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull ${HELM_IMAGE} - > docker run --rm --name helm -u root:root --workdir /mnt -v $PWD:/mnt ${HELM_IMAGE} helm package rdb - > fname=`ls rdb*.tgz` curl --fail --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@${fname}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/${CI_COMMIT_REF_NAME}/charts" rules: - when: manual tags: - rse-multi-builder