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

Move install to before script to avoid cache miss

parent 9ac4659d
No related branches found
No related tags found
1 merge request!10Add gitlab ci into project
......@@ -22,6 +22,20 @@ cache:
- CRI_XCBC/
- ansible/files/
before_script:
- |
if [ ! -f $CI_PROJECT_DIR/bin/packer ]; then
wget https://releases.hashicorp.com/packer/1.8.3/packer_1.8.3_linux_amd64.zip
unzip packer_1.8.3_linux_amd64.zip -d bin
rm -vf *.zip
fi
- $CI_PROJECT_DIR/bin/packer --version
- python --version
- python3 -m venv venv
- source venv/bin/activate
- pip install --upgrade pip
- pip install s3cmd ansible python-openstackclient
stages:
- build
- deploy
......@@ -32,18 +46,6 @@ setup_environment:
tags:
- build
script:
- |
if [ ! -f $CI_PROJECT_DIR/bin/packer ]; then
wget https://releases.hashicorp.com/packer/1.8.3/packer_1.8.3_linux_amd64.zip
unzip packer_1.8.3_linux_amd64.zip -d bin
rm -vf *.zip
fi
- $CI_PROJECT_DIR/bin/packer --version
- python --version
- python3 -m venv venv
- source venv/bin/activate
- pip install --upgrade pip
- pip install s3cmd ansible python-openstackclient
- |
if [ ! -d $CI_PROJECT_DIR/CRI_XCBC ]; then
git clone https://github.com/uabrc/CRI_XCBC.git
......
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