Update .gitlab-ci.yml file
This commit is contained in:
@@ -3,19 +3,14 @@ stages:
|
|||||||
- release
|
- release
|
||||||
|
|
||||||
|
|
||||||
# variables:
|
|
||||||
# PROJECT_TRANSLATE: 'glpat-ZMsMVQkmDvsEYUiqhfq7'
|
|
||||||
image: python:3.10
|
|
||||||
|
|
||||||
.pre:
|
|
||||||
stage: .pre
|
|
||||||
script:
|
|
||||||
- echo "testing"
|
|
||||||
|
|
||||||
prepare_job:
|
prepare_job:
|
||||||
stage: prepare
|
stage: prepare
|
||||||
|
image: python:3.10
|
||||||
script:
|
script:
|
||||||
- 'pip install requests'
|
- 'pip install requests'
|
||||||
|
- rm -rf {.git, ,gitattributes, .gitlab-ci.yml, CHANGELOG, README.md}
|
||||||
- 'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gl.beaconborn.ru/bacon/translation-generator.git'
|
- 'git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gl.beaconborn.ru/bacon/translation-generator.git'
|
||||||
- 'ls -al'
|
- 'ls -al'
|
||||||
- 'python3 translation-generator/main.py $CI_PROJECT_DIR/data/'
|
- 'python3 translation-generator/main.py $CI_PROJECT_DIR/data/'
|
||||||
@@ -23,7 +18,8 @@ prepare_job:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
release_job:
|
|
||||||
|
needs:
|
||||||
dependencies:
|
dependencies:
|
||||||
- prepare_job
|
- prepare_job
|
||||||
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
stage: release # It only runs when *both* jobs in the test stage complete successfully.
|
||||||
|
|||||||
Reference in New Issue
Block a user