# See go/reactfire-releasing for details on the ReactFire release process. # If you need to trigger a release manually, be sure to use substitutions like so: # @canary `gcloud builds submit --substitutions=SHORT_SHA="9b0a0b0"` # @next `gcloud builds submit --substitutions=TAG_NAME="v1.2.3-rc.1"` # @latest `gcloud builds submit --substitutions=TAG_NAME="v1.2.3"` # Not caching with kaniko due to https://github.com/GoogleContainerTools/kaniko/issues/713 steps: - name: gcr.io/cloud-builders/docker entrypoint: 'bash' args: - -c - 'docker pull gcr.io/$PROJECT_ID/publish:latest; docker build -t gcr.io/$PROJECT_ID/publish:latest --cache-from gcr.io/$PROJECT_ID/publish:latest --build-arg SHORT_SHA=$SHORT_SHA --build-arg TAG_NAME=$TAG_NAME --build-arg NPM_TOKEN=$(echo $$NPM_TOKEN) . && docker push gcr.io/$PROJECT_ID/publish:latest' secretEnv: ['NPM_TOKEN'] secrets: - kmsKeyName: projects/reactfire/locations/global/keyRings/cloud-build/cryptoKeys/cloud-build secretEnv: NPM_TOKEN: CiQADamFn5XzbeNQgzTGST9r3Tp5skWlDbBiWaZljffgEm0yIxYSTQC1QbtmDtScXx1BPE+d3CP9rXvOY+n5J0XRuLTTqN7RaqyipCEqTi7+z1kI6mKyBo2ilsMtOtngNzbOZ8kZeUDA80ISLWrNs0hF8k78 timeout: 1800s