Skip to content

Commit

Permalink
Fix release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 committed Nov 30, 2018
1 parent 42f7839 commit d85df01
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .kokoro/release.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ build_file: "elixir-google-api/.kokoro/trampoline.sh"
# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-public-resources/elixir16"
value: "gcr.io/cloud-devrel-public-resources/elixir17"
}

# Tell the trampoline which build file to use.
Expand Down
4 changes: 2 additions & 2 deletions .kokoro/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set -eo pipefail

pushd $(dirname "$0")/../

export HEX_API_KEY=$(cat ${KOKORO_KEYSTORE_DIR}/70247_elixir_hex_pw)
export HEX_API_KEY=$(cat ${KOKORO_KEYSTORE_DIR}/73713_elixir_hex_apikey)

mix deps.get
mix google_apis.publish
mix google_apis.publish
2 changes: 1 addition & 1 deletion clients/books/mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule GoogleApi.Books.V1.Mixfile do
use Mix.Project

@version "0.2.0"
@version "0.2.1"

def project() do
[
Expand Down
6 changes: 3 additions & 3 deletions lib/google_apis/publisher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ defmodule GoogleApis.Publisher do

def version_exists?(app, version) do
case Tesla.get("https://hex.pm/packages/#{app}/#{version}") do
%{status: 200} -> true
_ -> false
{:ok, %{status: 200}} -> true
_ -> false
end
end

Expand All @@ -70,4 +70,4 @@ defmodule GoogleApis.Publisher do
{:error, output}
end
end
end
end
1 change: 1 addition & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

log.debug(f"Cloning {repository_url}.")
repository = git.clone(repository_url, depth=1)
shell.run(["git", "clean", "-fdx"], cwd=repository)

image = "gcr.io/cloud-devrel-public-resources/elixir16"
generate_command = "scripts/generate_client.sh"
Expand Down

0 comments on commit d85df01

Please sign in to comment.