Skip to content
Snippets Groups Projects
Commit 360d7021 authored by Kwangjin Lee's avatar Kwangjin Lee
Browse files

Update .gitlab-ci.yml file

parent a0f3aea9
No related branches found
No related tags found
1 merge request!367test publish build
Pipeline #245585 passed
...@@ -35,6 +35,7 @@ build-book: ...@@ -35,6 +35,7 @@ build-book:
- book/_build/html - book/_build/html
- stdout.log - stdout.log
- stderr.log - stderr.log
expire_in: 1 week
rules: rules:
- if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "publish" - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "publish"
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "publish" - if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "publish"
...@@ -54,7 +55,8 @@ deploy-draft: ...@@ -54,7 +55,8 @@ deploy-draft:
"status": "success", "status": "success",
"ref": "main" "ref": "main"
}, },
"build_id": "'$CI_JOB_ID'" "build_id": "'$CI_JOB_ID'",
"build_status": "success"
}' }'
environment: environment:
name: draft name: draft
...@@ -76,7 +78,8 @@ deploy-production: ...@@ -76,7 +78,8 @@ deploy-production:
"status": "success", "status": "success",
"ref": "publish" "ref": "publish"
}, },
"build_id": "'$CI_JOB_ID'" "build_id": "'$CI_JOB_ID'",
"build_status": "success"
}' }'
environment: environment:
name: production name: production
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment