Skip to content

Commit

Permalink
Travis MacOS omnibus cert fix (#3296)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakolehm authored and Kimmo Lehto committed Feb 20, 2018
1 parent 9d7cf52 commit 7f1e3e8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion build/travis/deploy_omnibus_macos.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
#!/bin/sh
set -ue

echo "decrypting kontena.p12.enc ..."
openssl aes-256-cbc -K $encrypted_12d917fc848a_key -iv $encrypted_12d917fc848a_iv -in ./build/travis/kontena.p12.enc -out kontena.p12.txt -d
cat kontena.p12.txt | base64 --decode > kontena.p12

echo "creating build.keychain"
security create-keychain -p buildpwd build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p buildpwd build.keychain
security set-keychain-settings -t 3600 -u build.keychain

echo "importing kontena.p12 to build.keychain"
security import kontena.p12 -k build.keychain -P "" -T /usr/bin/productbuild
security set-key-partition-list -S apple-tool:,apple: -s -k buildpwd build.keychain

# install github-release
curl -sL https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 | tar -xjO > /tmp/github-release
chmod +x /tmp/github-release
Expand All @@ -26,4 +40,4 @@ bundle exec omnibus build kontena --log-level info
--repo kontena \
--tag $TRAVIS_TAG \
--name "kontena-cli-osx-${TRAVIS_TAG}-amd64.pkg" \
--file pkg/kontena-cli-*.pkg
--file pkg/kontena-cli-*.pkg
Binary file added build/travis/kontena.p12.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion cli/omnibus/config/software/kontena-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
gem "install -N kontena-cli-%s.gem" % default_version, env: env, cwd: File.expand_path('..', Omnibus::Config.project_root)
gem "install kontena-plugin-cloud -N", env: env
copy "sh/kontena", "#{install_dir}/bin/kontena"
end
end

0 comments on commit 7f1e3e8

Please sign in to comment.