From 799c2d684b6f48945a1cee4a821c8d11f85a43ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Hedenstro=CC=88m?= <erik@erlang.ninja> Date: Wed, 16 Dec 2015 15:07:20 +0100 Subject: [PATCH] Pinning publish tasks to amazon server --- .gitlab-ci.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58e1ace..dc08dc5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,6 @@ before_script: - git config --global url.https://.insteadOf git:// - - mkdir -p ~/.hex ~/.config/rebar3 - - printf "{key,<<\"$HEX_KEY\">>}.\n{username,<<\"$HEX_USERNAME\">>}.\n" > ~/.hex/hex.config - - printf "{plugins, [rebar3_hex]}.\n" > ~/.config/rebar3/rebar.config + - mkdir -p ~/.hex ~/.config/rebar3 && touch ~/.config/rebar3/rebar.config - if [ "$HTTP_PROXY" != "" ]; then printf "{http_proxy,\"$HTTP_PROXY\"}.\n" >> ~/.config/rebar3/rebar.config; fi - if [ "$HTTPS_PROXY" != "" ]; then printf "{https_proxy,\"$HTTPS_PROXY\"}.\n" >> ~/.config/rebar3/rebar.config; fi - rebar3 update @@ -28,8 +26,11 @@ hex_publish: only: - /^\d+[.]\d+[.]\d+$/ # Only publish HEAD tagged with semantic version script: - - rebar3 update - - yes Y | rebar3 hex publish + - printf "{key,<<\"$HEX_KEY\">>}.\n{username,<<\"$HEX_USERNAME\">>}.\n" > ~/.hex/hex.config + - printf "{plugins, [rebar3_hex]}.\n" > ~/.config/rebar3/rebar.config + - echo "Y" | rebar3 hex publish + tags: + - amazon aws_publish: stage: publish @@ -41,3 +42,5 @@ aws_publish: - rebar3 as production do tar - aws s3 cp _build/production/rel/tsuru/tsuru-$CI_BUILD_REF_NAME.tar.gz s3://s3.erlang.ninja/tsuru/ - aws s3 cp s3://s3.erlang.ninja/tsuru/tsuru-$CI_BUILD_REF_NAME.tar.gz s3://s3.erlang.ninja/tsuru/tsuru-latest.tar.gz + tags: + - amazon -- GitLab