Mk sign nightly release commits (#3264)
This commit is contained in:
parent
e90e0015ea
commit
7aa67f324c
|
@ -34,8 +34,8 @@ steps:
|
||||||
else
|
else
|
||||||
echo "Development/RC release detected. Using commit SHA as tag."
|
echo "Development/RC release detected. Using commit SHA as tag."
|
||||||
fi
|
fi
|
||||||
echo "Determined image tag: $FINAL_TAG"
|
echo "Determined image tag: $$FINAL_TAG"
|
||||||
echo "$FINAL_TAG" > /workspace/image_tag.txt
|
echo "$$FINAL_TAG" > /workspace/image_tag.txt
|
||||||
|
|
||||||
# Step 7: Build sandbox container image
|
# Step 7: Build sandbox container image
|
||||||
- name: 'us-west1-docker.pkg.dev/gemini-code-dev/gemini-code-containers/gemini-code-builder'
|
- name: 'us-west1-docker.pkg.dev/gemini-code-dev/gemini-code-containers/gemini-code-builder'
|
||||||
|
@ -44,8 +44,8 @@ steps:
|
||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG=$(cat /workspace/image_tag.txt)
|
export GEMINI_SANDBOX_IMAGE_TAG=$$(cat /workspace/image_tag.txt)
|
||||||
echo "Using Docker image tag for build: $GEMINI_SANDBOX_IMAGE_TAG"
|
echo "Using Docker image tag for build: $$GEMINI_SANDBOX_IMAGE_TAG"
|
||||||
npm run build:sandbox:fast
|
npm run build:sandbox:fast
|
||||||
env:
|
env:
|
||||||
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
||||||
|
@ -57,8 +57,8 @@ steps:
|
||||||
args:
|
args:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
export GEMINI_SANDBOX_IMAGE_TAG=$(cat /workspace/image_tag.txt)
|
export GEMINI_SANDBOX_IMAGE_TAG=$$(cat /workspace/image_tag.txt)
|
||||||
echo "Using Docker image tag for publish: $GEMINI_SANDBOX_IMAGE_TAG"
|
echo "Using Docker image tag for publish: $$GEMINI_SANDBOX_IMAGE_TAG"
|
||||||
npm run publish:sandbox
|
npm run publish:sandbox
|
||||||
env:
|
env:
|
||||||
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
- 'GEMINI_SANDBOX=$_CONTAINER_TOOL'
|
||||||
|
|
|
@ -33,15 +33,21 @@ jobs:
|
||||||
run: npm run preflight
|
run: npm run preflight
|
||||||
|
|
||||||
- name: Run Integration Tests (without Docker)
|
- name: Run Integration Tests (without Docker)
|
||||||
uses: nick-invision/retry@v2
|
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08
|
||||||
|
env:
|
||||||
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||||
with:
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
retry_wait_seconds: 30
|
retry_wait_seconds: 30
|
||||||
command: npm run test:integration:sandbox:none
|
command: npm run test:integration:sandbox:none
|
||||||
|
|
||||||
- name: Run Integration Tests (with Docker)
|
- name: Run Integration Tests (with Docker)
|
||||||
uses: nick-invision/retry@v2
|
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08
|
||||||
|
env:
|
||||||
|
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
|
||||||
with:
|
with:
|
||||||
|
timeout_minutes: 10
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
retry_wait_seconds: 30
|
retry_wait_seconds: 30
|
||||||
command: npm run test:integration:sandbox:docker
|
command: npm run test:integration:sandbox:docker
|
||||||
|
@ -63,6 +69,6 @@ jobs:
|
||||||
gh issue create \
|
gh issue create \
|
||||||
--title "Nightly Release Failed on $(date +'%Y-%m-%d')" \
|
--title "Nightly Release Failed on $(date +'%Y-%m-%d')" \
|
||||||
--body "The scheduled nightly release workflow failed. See the full run for details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
--body "The scheduled nightly release workflow failed. See the full run for details: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||||
--label "bug,nightly-failure"
|
--label "type: bug,nightly-failure"
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Reference in New Issue