Sha256: 6ac6083393e9ef6b53bc4350caf82d9db280be4800ac2bfe79ff4e75f9e50b5d

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

#!/usr/bin/env ruby

ref_name = ARGV[0]
old_revision = ARGV[1]
new_revision = ARGV[2]
repository_path = Dir.pwd
key_id = ENV['KEY_ID']
deploy_url = "#{ENV['SPASS_CONTROLLER_URL']}/api/deploy/start"

require 'gisha'

begin
  Gisha::CLI.run 'gisha', ['update', deploy_url, key_id, repository_path, new_revision]
rescue
  exit 1
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gisha-0.0.5 hooks/update