1
1
Fork 0

Is it this easy?

Signed by @spirillen
This commit is contained in:
spirillen 2021-09-11 12:39:39 +02:00
parent 1ec44d6aae
commit bdd13d5ccf
No known key found for this signature in database
GPG Key ID: 30562ED6FB236E4E
1 changed files with 22 additions and 22 deletions

View File

@ -22,10 +22,10 @@ after_script:
- echo "After script section"
- echo "For example you might do some clean up here"
- echo -e "After script section...\n"
# - git add .
# - git commit -m "Auto committed from the CI runner `date '+%F %T %Z %z'` [skip ci]"
# - git status
# - git push -u origin ${CI_COMMIT_REF_NAME}
- git add .
- git commit -m "Auto committed from the CI runner `date '+%F %T %Z %z'` [skip ci]"
- git status
- git push -u origin ${CI_COMMIT_REF_NAME}
build:
stage: build
@ -41,23 +41,23 @@ build:
# "{}" | sort -u | awk -F "." '{for(i=NF; i > 1; i--) printf "%s.", \
# $i; print $1}' \;
test1:
stage: test
script:
- echo "Do a test here"
- echo "For example run a test suite"
# test1:
# stage: test
# script:
# - echo "Do a test here"
# - echo "For example run a test suite"
test2:
stage: test
script:
- echo "Do another parallel test here"
- echo "For example run a lint test"
# test2:
# stage: test
# script:
# - echo "Do another parallel test here"
# - echo "For example run a lint test"
deploy1:
stage: deploy
script:
- echo "Do your deploy here"
- git add .
- git commit -m "Auto committed from the CI runner `date '+%F %T %Z %z'`"
- git status
- git push "https://${GITLAB_USER_NAME}:${CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci
# deploy1:
# stage: deploy
# script:
# - echo "Do your deploy here"
# - git add .
# - git commit -m "Auto committed from the CI runner `date '+%F %T %Z %z'`"
# - git status
# - git push "https://${GITLAB_USER_NAME}:${CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci