Skip to content

Instantly share code, notes, and snippets.

@mipmip
Created January 5, 2018 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mipmip/b25a2a3c0fcc0ea3e542daa502ed753b to your computer and use it in GitHub Desktop.
Save mipmip/b25a2a3c0fcc0ea3e542daa502ed753b to your computer and use it in GitHub Desktop.
gitlab-ci.yml with blackbox for decrypting secrets
image: "ruby:2.4"
simple_test:
script:
- apt-get update -qq && apt-get -yqq install gnupg2
- git clone https://github.com/mipmip/blackbox
- cd blackbox
- make manual-install
- cd ..
- gpg -v --import <(echo "$GPG_PRIVATE_KEY")
- blackbox_listadmins
- blackbox_postdeploy
- ruby test.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment