Update .gitlab-ci.yml

add snap package to stable
This commit is contained in:
Denis S. Soldatov aka General-Beck 2017-07-14 13:37:14 +03:00 committed by GitHub
parent f7f092dbe7
commit 1e45a9ec2e

View File

@ -65,17 +65,18 @@ linux-snap:
only:
- snap
- beta
- stable
- tags
- triggers
script:
- export VER=$(grep -m 1 version Cargo.toml | awk '{print $3}' | tr -d '"' | tr -d "\n")
- cd scripts
- cd snap
- rm -rf *snap
- sed -i 's/master/'"$VER"'/g' snapcraft.yaml
- echo "Version:"$VER
- snapcraft
- ls
- cp parity_beta_amd64.snap parity_"$VER"_amd64.snap
- cp "parity_"$CI_BUILD"_REF_NAME_amd64.snap" "parity_"$VER"_amd64.snap"
- md5sum "parity_"$VER"_amd64.snap" > "parity_"$VER"_amd64.snap.md5"
- aws configure set aws_access_key_id $s3_key
- aws configure set aws_secret_access_key $s3_secret