Skip to content
Snippets Groups Projects
Commit 039aa18f authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge validate job into build image job

parent 482f708e
No related branches found
No related tags found
No related merge requests found
......@@ -63,7 +63,7 @@ setup_environment:
- s3cmd get --force --host=$AWS_HOST --host-bucket=$AWS_HOST s3://ood-config/group_vars/all CRI_XCBC/group_vars/prod
- s3cmd get --force -r --host=$AWS_HOST --host-bucket=$AWS_HOST s3://cheaha-cloud-ansible-files/ ansible/files/
validate:
build_image:
stage: build
needs:
- setup_environment
......@@ -72,17 +72,8 @@ validate:
script:
- source venv/bin/activate
- $CI_PROJECT_DIR/bin/packer validate openstack
build_image:
stage: build
needs:
- validate
tags:
- build
script:
- "sed -i 's/hosts:.*$/hosts: default/' CRI_XCBC/ood-packer.yaml"
- cat CRI_XCBC/ood-packer.yaml
- source venv/bin/activate
- sed -i 's/\(\"--extra-vars\)/\"-vvv\", \1/' openstack/nodeimage.pkr.hcl
- sed -i 's/inventory_file.*/extra_arguments=[\"-vvv\"]/' openstack/nodeimage.pkr.hcl
- cat openstack/nodeimage.pkr.hcl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment