Commit 456196c3 authored by chengwei's avatar chengwei

fix Job - build-release

parent e6d7acae
......@@ -40,7 +40,7 @@ build-release:
- cd ..
- tar -zc $CI_PROJECT_NAME/ -f artifacts.tar.gz
- cp artifacts.tar.gz $CI_PROJECT_NAME/
- mv artifacts.tar.gz /tmp/artifacts.tar.gz
- mv artifacts.tar.gz /tmp/$ARTIFACT_NAME
- ansible-playbook $CI_PROJECT_NAME/ansible/upload_artifacts.yml -e target_host=localhost -e artifact_name=$ARTIFACT_NAME
artifacts:
......
......@@ -14,7 +14,7 @@
- name: Copy Artifact
copy:
src: "/tmp/artifacts.tar.gz"
src: "/tmp/{{ artifact_name }}"
dest: "/artifacts/{{ artifact_name }}"
backup: yes
group: root
......
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