fix(gitlab_release): Use a user token to access the git repo for pushing commits back
#1
This commit is contained in:
@ -13,7 +13,7 @@
|
|||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install -r $ROOT_DIR/gitlab_release/requirements.txt
|
- pip install -r $ROOT_DIR/gitlab_release/requirements.txt
|
||||||
- pip install $ROOT_DIR/gitlab_release/python-module/cz_nfc/.
|
- 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]"
|
- echo "[DEBUG] CLONE_URL[$CLONE_URL]"
|
||||||
- git clone -b $CI_COMMIT_BRANCH $CLONE_URL repo
|
- git clone -b $CI_COMMIT_BRANCH $CLONE_URL repo
|
||||||
- cd repo
|
- cd repo
|
||||||
|
|||||||
@ -30,7 +30,7 @@ Gitlab Release:
|
|||||||
|
|
||||||
| var name | Description |
|
| 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
|
## Job Workflow
|
||||||
|
|||||||
Reference in New Issue
Block a user