Skip to content
Snippets Groups Projects
Commit 4699d3cb authored by Kaleab Girma's avatar Kaleab Girma
Browse files

Adding CI/CD pipeline release and tag generator template

parent 1ca9920b
No related branches found
No related tags found
No related merge requests found
release: "gitlab"
gitlab:
repo: ${CI_PROJECT_PATH}
customUrl: "https://gitlab.tools.gebeya.io"
commitFormat: conventional
branch:
master: release
staging: rc
hooks:
preRelease:
- base64 -d $GCP_REGISTRY_AUTH_KEY | docker login -u _json_key --password-stdin https://gcr.io
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker pull $BUILD_IMAGE_NAME_LATEST || true
- docker build --cache-from $BUILD_IMAGE_NAME_LATEST --build-arg BUILDKIT_INLINE_CACHE=1 -t ${BUILD_IMAGE_NAME}$RELEASE_VERSION .
postRelease:
- base64 -d $GCP_REGISTRY_AUTH_KEY | docker login -u _json_key --password-stdin https://gcr.io
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker tag "${BUILD_IMAGE_NAME}$RELEASE_VERSION" "$BUILD_IMAGE_NAME_LATEST"
- docker push "${BUILD_IMAGE_NAME}$RELEASE_VERSION"
- docker push "$BUILD_IMAGE_NAME_LATEST"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment