Skip to content

Commit

Permalink
docker: generate_info_json
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Oct 7, 2023
1 parent a00036b commit 6e327da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release-docker-enterprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
echo "STEEDOS_VERSION=${STEEDOS_VERSION}" >> $GITHUB_ENV
echo "STEEDOS_VERSION=${STEEDOS_VERSION}"
- name: Generate info.json
run: |
if [[ -f deploy/enterprise/scripts/generate_info_json.sh ]]; then
deploy/enterprise/scripts/generate_info_json.sh
fi
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions deploy/enterprise/scripts/generate_info_json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ base_url="$(git remote get-url origin | sed 's,^git@github\.com:,https://github.
# echo "next_version = $next_version" >&2
# version="$next_version-SNAPSHOT"
# fi
version = require("./lerna.json").version
version=$(node -p 'require("./lerna.json").version')

if [[ -n ${GITHUB_RUN_ID-} ]]; then
github_run_url="$base_url/actions/runs/$GITHUB_RUN_ID/attempts/${GITHUB_RUN_ATTEMPT-1}"
Expand All @@ -31,4 +31,4 @@ jq -n \
--arg version "$version" \
--arg imageBuiltAt "$(date -u -Iseconds)" \
--argjson isCI "${CI:-false}" \
'$ARGS.named' | tee "$(git rev-parse --show-toplevel)/deploy/docker/fs/opt/steedos/info.json"
'$ARGS.named' | tee "$(git rev-parse --show-toplevel)/deploy/enterprise/fs/opt/steedos/info.json"

0 comments on commit 6e327da

Please sign in to comment.