Compare commits
10 Commits
5fe92cde25
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
019208ad0e | ||
|
|
af4fd324eb | ||
|
|
3d30c84497 | ||
|
|
6f8247e4fd | ||
|
|
014dcb5b09 | ||
|
|
2f786aa14f | ||
|
|
2e9d2ca143 | ||
|
|
4f0e7013e4 | ||
|
|
c1df449f57 | ||
|
|
a07c3ccd9c |
@@ -1,19 +1,23 @@
|
|||||||
stages:
|
stages:
|
||||||
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
|
||||||
# build_container:
|
build_container:
|
||||||
# stage: build
|
stage: build
|
||||||
# image: deps.global.bsf.tools/quay.io/buildah/stable:latest
|
image: deps.global.bsf.tools/quay.io/buildah/stable:latest
|
||||||
# variables:
|
variables:
|
||||||
# IMAGE_NAME: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
|
IMAGE_NAME: "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA"
|
||||||
# before_script:
|
before_script:
|
||||||
# - mkdir -p /tmp/buildah-storage
|
- mkdir -p /tmp/buildah-storage
|
||||||
# - export BUILDAH_ROOT="/tmp/buildah-storage"
|
- export BUILDAH_ROOT="/tmp/buildah-storage"
|
||||||
# - echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
|
- echo "$CI_REGISTRY_PASSWORD" | buildah login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
|
||||||
# script:
|
script:
|
||||||
# - buildah bud --build-arg NPM_REGISTRY=https://deps.global.bsf.tools/artifactory/api/npm/registry.npmjs.org/ --storage-driver vfs --isolation chroot -t $IMAGE_NAME .
|
# - buildah bud --build-arg NPM_REGISTRY=https://deps.global.bsf.tools/artifactory/api/npm/registry.npmjs.org/ --storage-driver vfs --isolation chroot -t $IMAGE_NAME .
|
||||||
# - buildah push --storage-driver vfs $IMAGE_NAME
|
- buildah pull git.bitstorm.ca/bitforge/warehouse13:latest
|
||||||
|
- buildah tag git.bitstorm.ca/bitforge/warehouse13:latest $IMAGE_NAME
|
||||||
|
- echo "Pushing $IMAGE_NAME"
|
||||||
|
- buildah push $IMAGE_NAME
|
||||||
|
|
||||||
deploy_helm_charts:
|
deploy_helm_charts:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
@@ -33,5 +37,6 @@ deploy_helm_charts:
|
|||||||
# ONLY: ["branches", "!main"]
|
# ONLY: ["branches", "!main"]
|
||||||
script:
|
script:
|
||||||
- kubectl config use-context $CONTEXT
|
- kubectl config use-context $CONTEXT
|
||||||
|
- echo "Deploy - $CI_REGISTRY_NAME - $CI_COMMIT_REF_SLUG - $CI_COMMIT_SHORT_SHA"
|
||||||
- |
|
- |
|
||||||
helm upgrade --install warehouse13-$CI_COMMIT_REF_NAME ./helm/warehouse13 --namespace $NAMESPACE -f $VALUES_FILE
|
helm upgrade --install warehouse13-dev ./helm/warehouse13 --namespace $NAMESPACE -f $VALUES_FILE --set app.image.repository=$CI_REGISTRY_IMAGE --set app.image.tag=$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
|
||||||
Reference in New Issue
Block a user