gitlab-ci: add puyak deployment
This commit is contained in:
parent
d48d88dab3
commit
4908f1f4eb
@ -11,13 +11,14 @@ before_script:
|
|||||||
- ssh-keyscan -H 'ssh.git.shackspace.de' >> ~/.ssh/known_hosts
|
- ssh-keyscan -H 'ssh.git.shackspace.de' >> ~/.ssh/known_hosts
|
||||||
# import secret key for secrets
|
# import secret key for secrets
|
||||||
- echo "$secrets_gpg_key" | gpg --import
|
- echo "$secrets_gpg_key" | gpg --import
|
||||||
wolf deployment test:
|
deployment test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- GIT_SSH_COMMAND="ssh -i ~/.ssh/gitlab_deploy.key" git clone git@ssh.git.shackspace.de:rz/secrets.git ~/brain
|
- GIT_SSH_COMMAND="ssh -i ~/.ssh/gitlab_deploy.key" git clone git@ssh.git.shackspace.de:rz/secrets.git ~/brain
|
||||||
- test $(PASSWORD_STORE_DIR=~/brain pass smoke) == 1337
|
- test $(PASSWORD_STORE_DIR=~/brain pass smoke) == 1337
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- $(nix-build krebs/krops.nix --no-out-link --argstr name wolf --argstr target /tmp -A test)
|
- $(nix-build krebs/krops.nix --no-out-link --argstr name wolf --argstr target /tmp -A test)
|
||||||
|
- $(nix-build krebs/krops.nix --no-out-link --argstr name puyak --argstr target /tmp -A test)
|
||||||
nix-shell test:
|
nix-shell test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
@ -34,7 +35,6 @@ wolf deployment:
|
|||||||
- git clone git@ssh.git.shackspace.de:rz/secrets.git ~/brain
|
- git clone git@ssh.git.shackspace.de:rz/secrets.git ~/brain
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- ssh-keyscan -H 'wolf.shack' >> ~/.ssh/known_hosts
|
- ssh-keyscan -H 'wolf.shack' >> ~/.ssh/known_hosts
|
||||||
# TODO, hostname wolf cannot be resolved
|
|
||||||
- $(nix-build krebs/krops.nix --no-out-link --argstr name wolf --argstr target wolf.shack -A deploy)
|
- $(nix-build krebs/krops.nix --no-out-link --argstr name wolf --argstr target wolf.shack -A deploy)
|
||||||
only:
|
only:
|
||||||
changes:
|
changes:
|
||||||
@ -42,6 +42,20 @@ wolf deployment:
|
|||||||
- krebs/**/*
|
- krebs/**/*
|
||||||
- lib/**/*
|
- lib/**/*
|
||||||
- .gitmodules
|
- .gitmodules
|
||||||
|
puyak deployment:
|
||||||
|
stage: deploy
|
||||||
|
script:
|
||||||
|
- cp ~/.ssh/gitlab_deploy.key ~/.ssh/id_rsa
|
||||||
|
- git clone git@ssh.git.shackspace.de:rz/secrets.git ~/brain
|
||||||
|
- git submodule update --init
|
||||||
|
- ssh-keyscan -H 'puyak.shack' >> ~/.ssh/known_hosts
|
||||||
|
- $(nix-build krebs/krops.nix --no-out-link --argstr name puyak --argstr target puyak.shack -A deploy)
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- .gitlab-ci.yml
|
||||||
|
- krebs/**/*
|
||||||
|
- lib/**/*
|
||||||
|
- .gitmodules
|
||||||
nur-packages makefu:
|
nur-packages makefu:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user