mirror of
https://github.com/opentofu/opentofu.git
synced 2026-02-18 18:17:54 -05:00
[main] Fixes for GH workflows for older OpenTofu versions (#3485)
Some checks failed
build / Build for freebsd_386 (push) Has been cancelled
build / Build for linux_386 (push) Has been cancelled
build / Build for openbsd_386 (push) Has been cancelled
build / Build for windows_386 (push) Has been cancelled
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build for darwin_amd64 (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / End-to-end Tests for linux_386 (push) Has been cancelled
build / End-to-end Tests for windows_386 (push) Has been cancelled
build / End-to-end Tests for darwin_amd64 (push) Has been cancelled
build / End-to-end Tests for linux_amd64 (push) Has been cancelled
build / End-to-end Tests for windows_amd64 (push) Has been cancelled
Quick Checks / List files changed for pull request (push) Has been cancelled
Quick Checks / License Checks (push) Has been cancelled
Website checks / List files changed for pull request (push) Has been cancelled
Quick Checks / Unit tests for linux_386 (push) Has been cancelled
Quick Checks / Unit tests for linux_amd64 (push) Has been cancelled
Quick Checks / Unit tests for windows_amd64 (push) Has been cancelled
Quick Checks / Unit tests for linux_arm (push) Has been cancelled
Quick Checks / Unit tests for darwin_arm64 (push) Has been cancelled
Quick Checks / Unit tests for linux_arm64 (push) Has been cancelled
Quick Checks / Race Tests (push) Has been cancelled
Quick Checks / End-to-end Tests (push) Has been cancelled
Quick Checks / Code Consistency Checks (push) Has been cancelled
Website checks / Build (push) Has been cancelled
Website checks / Test Installation Instructions (push) Has been cancelled
Some checks failed
build / Build for freebsd_386 (push) Has been cancelled
build / Build for linux_386 (push) Has been cancelled
build / Build for openbsd_386 (push) Has been cancelled
build / Build for windows_386 (push) Has been cancelled
build / Build for freebsd_amd64 (push) Has been cancelled
build / Build for linux_amd64 (push) Has been cancelled
build / Build for openbsd_amd64 (push) Has been cancelled
build / Build for solaris_amd64 (push) Has been cancelled
build / Build for windows_amd64 (push) Has been cancelled
build / Build for freebsd_arm (push) Has been cancelled
build / Build for linux_arm (push) Has been cancelled
build / Build for linux_arm64 (push) Has been cancelled
build / Build for darwin_amd64 (push) Has been cancelled
build / Build for darwin_arm64 (push) Has been cancelled
build / End-to-end Tests for linux_386 (push) Has been cancelled
build / End-to-end Tests for windows_386 (push) Has been cancelled
build / End-to-end Tests for darwin_amd64 (push) Has been cancelled
build / End-to-end Tests for linux_amd64 (push) Has been cancelled
build / End-to-end Tests for windows_amd64 (push) Has been cancelled
Quick Checks / List files changed for pull request (push) Has been cancelled
Quick Checks / License Checks (push) Has been cancelled
Website checks / List files changed for pull request (push) Has been cancelled
Quick Checks / Unit tests for linux_386 (push) Has been cancelled
Quick Checks / Unit tests for linux_amd64 (push) Has been cancelled
Quick Checks / Unit tests for windows_amd64 (push) Has been cancelled
Quick Checks / Unit tests for linux_arm (push) Has been cancelled
Quick Checks / Unit tests for darwin_arm64 (push) Has been cancelled
Quick Checks / Unit tests for linux_arm64 (push) Has been cancelled
Quick Checks / Race Tests (push) Has been cancelled
Quick Checks / End-to-end Tests (push) Has been cancelled
Quick Checks / Code Consistency Checks (push) Has been cancelled
Website checks / Build (push) Has been cancelled
Website checks / Test Installation Instructions (push) Has been cancelled
Signed-off-by: Andrei Ciobanu <andrei.ciobanu@opentofu.org>
This commit is contained in:
parent
1cf9d209ed
commit
c29cd93f21
3 changed files with 30 additions and 1 deletions
11
.github/workflows/website.yml
vendored
11
.github/workflows/website.yml
vendored
|
|
@ -39,9 +39,20 @@ jobs:
|
|||
- name: Prepare website container
|
||||
run: docker compose -f docker-compose.build.yml build
|
||||
working-directory: website
|
||||
# The segregation between the next 2 steps is because on non-main branches, there are
|
||||
# blog posts that point to the 'main' branch documentation that is fully missing from
|
||||
# the branches that are used to maintain older versions of OpenTofu.
|
||||
# Therefore, we run the full website check on main (and any branch in a PR that points
|
||||
# to the main branch) and we run a trimmed down website checks for any runs against
|
||||
# a non-main branch (or a PR that points to a non-main branch)
|
||||
- name: Build website
|
||||
if: github.ref == 'refs/heads/main' || github.base_ref == 'main'
|
||||
run: docker compose -f docker-compose.build.yml up --exit-code-from website
|
||||
working-directory: website
|
||||
- name: Build website with warns
|
||||
if: github.ref != 'refs/heads/main' && github.base_ref != 'main'
|
||||
run: docker compose -f docker-compose.build-non-main.yml up --exit-code-from website
|
||||
working-directory: website
|
||||
|
||||
installation-instructions:
|
||||
name: "Test Installation Instructions"
|
||||
|
|
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue