Skip to content

Commit 0a61c31

Browse files
authored
Merge pull request #219 from orionrobots/fix/move-staging-to-github-scripts
Move staging test environment from _drafts to .github/scripts
2 parents c4ee708 + 1d9932c commit 0a61c31

File tree

12 files changed

+21
-9
lines changed

12 files changed

+21
-9
lines changed
File renamed without changes.

.github/scripts/staging/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Staging Test Environment
2+
3+
This is an HTTP staging area - to test interactions between orionrobots code, htaccess files, and Apache. The conf files intend to reflect a hosting company's settings.
4+
5+
This staging environment is used by the GitHub Actions workflows to test the built site before deployment.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/on_call_build_site.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ jobs:
2727
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2828
with:
2929
name: httpd.conf
30-
path: _drafts/staging/httpd.conf
30+
path: .github/scripts/staging/httpd.conf
3131
if-no-files-found: error

.github/workflows/on_call_staging_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
tar -xzf _site.tar.gz
1717
- name: Prepare for docker build
1818
run: |
19-
cp _drafts/staging/Dockerfile _site/
20-
cp _drafts/staging/http2.conf _site/
19+
cp .github/scripts/staging/Dockerfile _site/
20+
cp .github/scripts/staging/http2.conf _site/
2121
2222
- name: Set up Docker Buildx
2323
uses: docker/setup-buildx-action@v3

.github/workflows/on_push_to_master_test_and_deploy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6060
with:
6161
name: httpd.conf
62-
path: _drafts/staging/httpd.conf
62+
path: .github/scripts/staging/httpd.conf
6363

6464
# Sync the files
6565
- name: Sync the site over

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,13 @@ Attaching to orionrobotsgithubio-web-1
5252
orionrobotsgithubio-web-1 | ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux-musl]
5353
```
5454

55+
## Staging Test Environment
56+
57+
The staging test environment is located in `.github/scripts/staging/` and contains Docker configuration files used for testing the built site before deployment. This environment:
58+
59+
- Tests the site with Apache configuration that mirrors the hosting environment
60+
- Validates that htaccess rules work correctly
61+
- Ensures the site serves properly before deployment
62+
63+
The staging tests run automatically in CI/CD workflows when changes are pushed to the master branch or in pull requests.
64+

_drafts/staging/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)