From 85d6918ec5b5c023290ff36cadb26a30cef47ba2 Mon Sep 17 00:00:00 2001 From: Craig Gill Date: Mon, 13 Nov 2023 14:00:33 -0800 Subject: [PATCH] setup pipelines --- .gitlab-ci.yml | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 61c062a..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,34 +0,0 @@ -stages: - - build_jira - -variables: - GIT_STRATEGY: fetch - DEFAULT_RELEASE_TAG: 'latest' # Add a default release tag in case the variable is not set - -.jira_rules: - rules: - - if: '$CI_COMMIT_REF_NAME == "main"' - changes: - - app/* - -build_jira: - stage: build_jira - image: - name: gcr.io/kaniko-project/executor:v1.9.0-debug - entrypoint: [""] - extends: .jira_rules - script: - - cd app - - | - if [ -n "${CI_MERGE_REQUEST_ID}" ]; then - RELEASE_TAG=$(grep "^release=" .release | cut -d "=" -f 2) - else - RELEASE_TAG=${RELEASE_TAG:-$DEFAULT_RELEASE_TAG} - fi - - > - /kaniko/executor - --context "${CI_PROJECT_DIR}/app" - --dockerfile "${CI_PROJECT_DIR}/app/Dockerfile" - --build-arg RELEASE_TAG=$RELEASE_TAG - --destination "${CI_REGISTRY_IMAGE}:${RELEASE_TAG}" - --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}" \ No newline at end of file