ci: Include info.json for all workflows (#26429)
This commit is contained in:
parent
944195c9a6
commit
56c6aa0f1d
10
.github/workflows/ad-hoc-deploy-preview.yml
vendored
10
.github/workflows/ad-hoc-deploy-preview.yml
vendored
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
"status": "IN_PROGRESS",
|
"status": "IN_PROGRESS",
|
||||||
"githubWorkflowId": "${{ github.run_id }}"
|
"githubWorkflowId": "${{ github.run_id }}"
|
||||||
}'
|
}'
|
||||||
|
|
||||||
server-build:
|
server-build:
|
||||||
name: server-build
|
name: server-build
|
||||||
uses: ./.github/workflows/server-build.yml
|
uses: ./.github/workflows/server-build.yml
|
||||||
|
|
@ -104,6 +104,12 @@ jobs:
|
||||||
echo "Cleaning up the tar files"
|
echo "Cleaning up the tar files"
|
||||||
rm app/client/packages/rts/dist/rts-dist.tar
|
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
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
@ -190,4 +196,4 @@ jobs:
|
||||||
"status": "FAILED"
|
"status": "FAILED"
|
||||||
}'
|
}'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
6
.github/workflows/build-docker-image.yml
vendored
6
.github/workflows/build-docker-image.yml
vendored
|
|
@ -71,6 +71,12 @@ jobs:
|
||||||
echo "Cleaning up the tar files"
|
echo "Cleaning up the tar files"
|
||||||
rm app/client/packages/rts/dist/rts-dist.tar
|
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.
|
# 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.
|
# 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
|
- name: Build docker image
|
||||||
|
|
|
||||||
6
.github/workflows/github-release.yml
vendored
6
.github/workflows/github-release.yml
vendored
|
|
@ -252,6 +252,12 @@ jobs:
|
||||||
echo "Cleaning up the tar files"
|
echo "Cleaning up the tar files"
|
||||||
rm app/client/packages/rts/dist/rts-dist.tar
|
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
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
12
.github/workflows/test-build-docker-image.yml
vendored
12
.github/workflows/test-build-docker-image.yml
vendored
|
|
@ -220,6 +220,12 @@ jobs:
|
||||||
echo "Cleaning up the tar files"
|
echo "Cleaning up the tar files"
|
||||||
rm app/client/packages/rts/dist/rts-dist.tar
|
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
|
- name: Set up Depot CLI
|
||||||
uses: depot/setup-action@v1
|
uses: depot/setup-action@v1
|
||||||
|
|
||||||
|
|
@ -288,6 +294,12 @@ jobs:
|
||||||
echo "Cleaning up the tar files"
|
echo "Cleaning up the tar files"
|
||||||
rm app/client/packages/rts/dist/rts-dist.tar
|
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
|
- name: Set up Depot CLI
|
||||||
uses: depot/setup-action@v1
|
uses: depot/setup-action@v1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,6 @@ jq -n \
|
||||||
--arg githubRef "${GITHUB_REF-}" \
|
--arg githubRef "${GITHUB_REF-}" \
|
||||||
--arg gitNearestTag "$git_tag" \
|
--arg gitNearestTag "$git_tag" \
|
||||||
--arg githubRunUrl "${github_run_url-}" \
|
--arg githubRunUrl "${github_run_url-}" \
|
||||||
--arg date "$(date -u -Iseconds)" \
|
--arg imageBuiltAt "$(date -u -Iseconds)" \
|
||||||
--argjson isCI "${CI:-false}" \
|
--argjson isCI "${CI:-false}" \
|
||||||
'$ARGS.named' | tee "$(git rev-parse --show-toplevel)/info.json"
|
'$ARGS.named' | tee "$(git rev-parse --show-toplevel)/info.json"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user