mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
[main] Fixes for GH workflows for older OpenTofu versions (#3485)
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
18
website/docker-compose.build-non-main.yml
Normal file
18
website/docker-compose.build-non-main.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
# Copyright (c) The OpenTofu Authors
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
# Copyright (c) 2023 HashiCorp, Inc.
|
||||
# SPDX-License-Identifier: MPL-2.0
|
||||
|
||||
# This file is meant to be used only in running the `website` GH workflow on non-main branches and PRs that are targeting non-main branches.
|
||||
# This is because the [blog/](https://github.com/opentofu/opentofu.org/tree/main/blog) content can point to documentation that is not available
|
||||
# in branches of lower versions of OpenTofu.
|
||||
services:
|
||||
website:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ../:/work/opentofu-repo/main
|
||||
command: >
|
||||
sh -c "sed -i 's#throw#warn#g' docusaurus.config.ts && npm run build"
|
||||
restart: no
|
||||
@@ -36,7 +36,7 @@ for SERVICE in $SERVICES; do
|
||||
docker compose logs ${SERVICE}
|
||||
FAILED=$((${FAILED}+1))
|
||||
fi
|
||||
cat $TEMPFILE | grep -a -E "^[a-zA-Z]+-${SERVICE}-1\s+\| " | sed -E "s/^[a-zA-Z]+-${SERVICE}-1\s+\| //"
|
||||
cat $TEMPFILE | grep -a -E "^${SERVICE}-1\s+\| " | sed -E "s/^${SERVICE}-1\s+\| //"
|
||||
echo "::endgroup::"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user