ci: Include info.json for all workflows (#26429)

This commit is contained in:
Shrikant Sharat Kandula 2023-08-22 10:34:23 +05:30 committed by GitHub
parent 944195c9a6
commit 56c6aa0f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 3 deletions

View File

@ -31,7 +31,7 @@ jobs:
"status": "IN_PROGRESS",
"githubWorkflowId": "${{ github.run_id }}"
}'
server-build:
name: server-build
uses: ./.github/workflows/server-build.yml
@ -104,6 +104,12 @@ jobs:
echo "Cleaning up the tar files"
rm app/client/packages/rts/dist/rts-dist.tar
- name: Generate info.json
run: |
if [[ -f scripts/generate_info_json.sh ]]; then
scripts/generate_info_json.sh
fi
- name: Login to DockerHub
uses: docker/login-action@v1
with:
@ -190,4 +196,4 @@ jobs:
"status": "FAILED"
}'

View File

@ -71,6 +71,12 @@ jobs:
echo "Cleaning up the tar files"
rm app/client/packages/rts/dist/rts-dist.tar
- name: Generate info.json
run: |
if [[ -f scripts/generate_info_json.sh ]]; then
scripts/generate_info_json.sh
fi
# We don't use Depot Docker builds because it's faster for local Docker images to be built locally.
# It's slower and more expensive to build these Docker images on Depot and download it back to the CI node.
- name: Build docker image

View File

@ -252,6 +252,12 @@ jobs:
echo "Cleaning up the tar files"
rm app/client/packages/rts/dist/rts-dist.tar
- name: Generate info.json
run: |
if [[ -f scripts/generate_info_json.sh ]]; then
scripts/generate_info_json.sh
fi
- name: Login to DockerHub
uses: docker/login-action@v1
with:

View File

@ -220,6 +220,12 @@ jobs:
echo "Cleaning up the tar files"
rm app/client/packages/rts/dist/rts-dist.tar
- name: Generate info.json
run: |
if [[ -f scripts/generate_info_json.sh ]]; then
scripts/generate_info_json.sh
fi
- name: Set up Depot CLI
uses: depot/setup-action@v1
@ -288,6 +294,12 @@ jobs:
echo "Cleaning up the tar files"
rm app/client/packages/rts/dist/rts-dist.tar
- name: Generate info.json
run: |
if [[ -f scripts/generate_info_json.sh ]]; then
scripts/generate_info_json.sh
fi
- name: Set up Depot CLI
uses: depot/setup-action@v1

View File

@ -37,6 +37,6 @@ jq -n \
--arg githubRef "${GITHUB_REF-}" \
--arg gitNearestTag "$git_tag" \
--arg githubRunUrl "${github_run_url-}" \
--arg date "$(date -u -Iseconds)" \
--arg imageBuiltAt "$(date -u -Iseconds)" \
--argjson isCI "${CI:-false}" \
'$ARGS.named' | tee "$(git rev-parse --show-toplevel)/info.json"