Skip to content

Commit

Permalink
chore(main): Store released artifacts in placer
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanshumittal committed May 15, 2023
1 parent 98b3073 commit 601a20f
Show file tree
Hide file tree
Showing 4 changed files with 522 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/release-trigger.yml
@@ -0,0 +1,2 @@
enabled: true
multiScmName: google-api-go-client
21 changes: 21 additions & 0 deletions internal/kokoro/release.sh
@@ -0,0 +1,21 @@
#!/bin/bash

# Fail on any error.
set -eo pipefail

# Install zip
apt install zip -y

# Start the releasetool reporter
requirementsFile=$(realpath $(dirname "$0"))/requirements.txt
python3 -m pip install --require-hashes -r $requirementsFile
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script

# Move to the repository directory
cd github/google-api-go-client/

# Create a directory for storing the released artifact
mkdir pkg && zip -r pkg/google-api-go-client.zip . -x 'pkg/*' @

# Store the commit hash in a txt as an artifact.
echo -e $KOKORO_GITHUB_COMMIT >> pkg/commit.txt
39 changes: 39 additions & 0 deletions internal/kokoro/requirements.in
@@ -0,0 +1,39 @@
attrs==22.1.0
cachetools==4.2.4
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==2.0.12
click==8.0.4
colorlog==6.7.0
cryptography==39.0.1
gcp-docuploader==0.6.3
gcp-releasetool==1.10.5
google-api-core==2.8.2
google-auth==2.14.1
google-cloud-core==2.3.1
google-cloud-storage==2.0.0
google-crc32c==1.3.0
google-resumable-media==2.5.0
googleapis-common-protos==1.56.3
idna==3.4
importlib-metadata==4.8.3
jeepney==0.7.1
Jinja2==3.0.3
keyring==23.4.1
MarkupSafe==2.0.1
packaging==21.3
protobuf==3.19.5
pyasn1==0.5.0
pyasn1-modules==0.3.0
pycparser==2.21
PyJWT==2.4.0
pyparsing==3.0.9
pyperclip==1.8.2
python-dateutil==2.8.2
requests==2.27.1
rsa==4.9
SecretStorage==3.3.3
six==1.16.0
typing_extensions==4.1.1
urllib3==1.26.12
zipp==3.6.0

0 comments on commit 601a20f

Please sign in to comment.