blob: 2bdb452c8356012995c58619581c8f705ea35ebe [file]
steps:
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:latest'
entrypoint: 'bash'
args:
- '-c'
- |
# Install python3, pip3, and curl (removed from cloud-sdk:592.0.0+)
apt-get update && \
apt-get install -y --no-install-recommends ca-certificates curl python3 python3-pip && \
# Download and install gcrane
curl -L \
https://github.com/google/go-containerregistry/releases/latest/download/go-containerregistry_Linux_x86_64.tar.gz \
-o go-containerregistry.tar.gz && \
tar -zxvf go-containerregistry.tar.gz && \
chmod +x gcrane && \
mv gcrane /usr/local/bin/ && \
gcrane --help && \
# Run the release script
pip3 install --break-system-packages -r release/requirements.txt && \
python3 release/release.py ${_BUILD_GCR} ${_RELEASE_GCR} ${_RELEASE_GCS}