Use secrets for keys instead of ad-hoc image
This commit is contained in:
parent
80f8ed0a5d
commit
e3bc6a88d9
@ -63,11 +63,15 @@ pipeline:
|
|||||||
dpkg_build_and_upload:
|
dpkg_build_and_upload:
|
||||||
when:
|
when:
|
||||||
branch: v*.*.*
|
branch: v*.*.*
|
||||||
image: offline-twitter/deploy
|
image: offline-twitter/go
|
||||||
|
secrets:
|
||||||
|
- aptrepo_id_ecdsa
|
||||||
commands:
|
commands:
|
||||||
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
- export version=$(echo $CI_COMMIT_BRANCH | grep -Poh "(?<=^v)\d+\.\d+\.\d+")
|
||||||
- cd build
|
- cd build
|
||||||
- ./build_dpkg.sh $version
|
- ./build_dpkg.sh $version
|
||||||
|
- eval $(ssh-agent)
|
||||||
|
- echo "$APTREPO_ID_ECDSA" | ssh-add -
|
||||||
- scp offline-twitter_$${version}_all.deb aptrepo@apt.playfulpachyderm.com:/apt-repo/test-repo
|
- scp offline-twitter_$${version}_all.deb aptrepo@apt.playfulpachyderm.com:/apt-repo/test-repo
|
||||||
- ssh aptrepo@apt.playfulpachyderm.com "cd ~/test-repo && ./update.sh"
|
- ssh aptrepo@apt.playfulpachyderm.com "cd ~/test-repo && ./update.sh"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user