Commit fb155f3b authored by cicd's avatar cicd

[tag]dev

parent 67d7dcc0
...@@ -23,9 +23,10 @@ build: ...@@ -23,9 +23,10 @@ build:
- runner-builder - runner-builder
deploy: deploy:
stage: deploy stage: deploy
variables:
GIT_STRATEGY: none
before_script: before_script:
- source ./env-param.sh
- cicd_path=$(pwd)/cicd - cicd_path=$(pwd)/cicd
- export CI_REGISTRY_PW=$CI_REGISTRY_PW - export CI_REGISTRY_PW=$CI_REGISTRY_PW
- export CI_REGISTRY_USER=$CI_REGISTRY_USER - export CI_REGISTRY_USER=$CI_REGISTRY_USER
...@@ -41,6 +42,8 @@ deploy: ...@@ -41,6 +42,8 @@ deploy:
sudo chown -R gitlab-runner.gitlab-runner $mount_data_folder/$project_name sudo chown -R gitlab-runner.gitlab-runner $mount_data_folder/$project_name
fi fi
script: script:
- touch /gitlab.txt
- echo $CI_REGISTRY_PW > /gitlab.txt
- export tag=$tag - export tag=$tag
- bash $cicd_path/deploy.sh - bash $cicd_path/deploy.sh
only: only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment