Skip to content

Commit

Permalink
update ci logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Wicaeed committed May 4, 2023
1 parent ab7287e commit 8e8a145
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ build_jira:
name: gcr.io/kaniko-project/executor:v1.9.0-debug
entrypoint: [""]
extends: .jira_rules
artifacts:
paths:
- app/.release
script:
- cd app
- |
if [ -n "${CI_MERGE_REQUEST_ID}" ]; then
RELEASE_TAG=${CI_COMMIT_REF_NAME}
else
RELEASE_TAG=$(grep "^release=" .release | cut -d "=" -f 2)
else
RELEASE_TAG=${RELEASE_TAG:-$DEFAULT_RELEASE_TAG}
fi
- RELEASE_TAG=${RELEASE_TAG:-$DEFAULT_RELEASE_TAG} # Use the default release tag if RELEASE_TAG is empty
- >
/kaniko/executor
--context "${CI_PROJECT_DIR}/app"
Expand Down

0 comments on commit 8e8a145

Please sign in to comment.