mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
ci: introduce docker image scans
https://github.com/hasura/graphql-engine-mono/pull/2177 GitOrigin-RevId: 03cbcbd0cdf1ec20941b7eed8842e5075ccee94d
This commit is contained in:
parent
10e01a4669
commit
4b7a035012
@ -37,7 +37,14 @@ find "$ROOT/install-manifests" \
|
||||
's#(hasura/graphql-engine:)v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(\-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(.*)*$#\1'"${TAG}"'\9#' {} \;
|
||||
|
||||
# update version in CLI installation instructions
|
||||
sed -i -E 's#(.*)v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(\-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(.*)*$#\1'"${TAG}"'\9#' "${ROOT}/cli/README.md" "${ROOT}/docs/graphql/core/hasura-cli/install-hasura-cli.rst"
|
||||
sed -i -E 's#(.*)v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(\-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(\+[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?(.*)*$#\1'"${TAG}"'\9#' \
|
||||
"${ROOT}/cli/README.md" \
|
||||
"${ROOT}/docs/graphql/core/hasura-cli/install-hasura-cli.rst" \
|
||||
|
||||
# update version in CI image scanning tags
|
||||
sed -i -E 's#v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)#'"${TAG}"'#' \
|
||||
"${ROOT}/.buildkite/pipeline-gen/pipeline/scan_graphql_engine_images.go" \
|
||||
"${ROOT}/.buildkite/pipeline-gen/pipeline/scan_graphql_engine_pro_images.go"
|
||||
|
||||
# add the latest tag to the catalog_versions file
|
||||
[ -n "$(tail -c1 "$ROOT/server/src-rsr/catalog_versions.txt")" ] && echo >> "$ROOT/server/src-rsr/catalog_versions.txt"
|
||||
@ -46,7 +53,9 @@ echo $TAG $(cat "$ROOT/server/src-rsr/catalog_version.txt") >> "$ROOT/server/src
|
||||
git add "$ROOT/install-manifests" \
|
||||
"$ROOT/server/src-rsr" \
|
||||
"${ROOT}/cli/README.md" \
|
||||
"${ROOT}/docs/graphql/core/hasura-cli/install-hasura-cli.rst"
|
||||
"${ROOT}/docs/graphql/core/hasura-cli/install-hasura-cli.rst" \
|
||||
"${ROOT}/.buildkite/pipeline-gen/pipeline/scan_graphql_engine_images.go" \
|
||||
"${ROOT}/.buildkite/pipeline-gen/pipeline/scan_graphql_engine_pro_images.go"
|
||||
|
||||
git commit -m "tag release $TAG"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user