fix(gitlab_release): Use a user token to access the git repo for pushing commits back

#1
This commit is contained in:
2021-08-04 10:40:46 +09:30
parent 1ecd857c0b
commit 1446c28ed2
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
- pip install --upgrade pip
- pip install -r $ROOT_DIR/gitlab_release/requirements.txt
- pip install $ROOT_DIR/gitlab_release/python-module/cz_nfc/.
- 'CLONE_URL="https://gitlab-ci-token:$API_RO_GIT_WR@gitlab.com/$CI_PROJECT_PATH.git"'
- 'CLONE_URL="https://gitlab-ci-token:$GIT_COMMIT_TOKEN@gitlab.com/$CI_PROJECT_PATH.git"'
- echo "[DEBUG] CLONE_URL[$CLONE_URL]"
- git clone -b $CI_COMMIT_BRANCH $CLONE_URL repo
- cd repo

View File

@ -30,7 +30,7 @@ Gitlab Release:
| var name | Description |
|:----:|:----|
| API_RO_GIT_WR | *this must be a personal token that has write access to the repository* |
| GIT_COMMIT_TOKEN | *this must be a personal token that has write access to the repository* |
## Job Workflow