-
Notifications
You must be signed in to change notification settings - Fork 1
Migrate on_call_staging_test workflow to use Docker Compose with improved CI integration #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,9 @@ | ||
| FROM centos/httpd:latest | ||
| COPY . /var/www/html/ | ||
| COPY http2.conf /etc/httpd/conf/httpd.conf | ||
| FROM httpd:2.4.64 | ||
|
|
||
| # Install curl for healthcheck | ||
| RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Copy the built site content (context is _site directory) | ||
| COPY . /usr/local/apache2/htdocs/ | ||
| # Copy the Apache configuration (copied to _site in workflow as httpd.conf) | ||
| COPY httpd.conf /usr/local/apache2/conf/httpd.conf |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,3 +103,21 @@ services: | |
| command: ["http://http_serve"] | ||
| profiles: | ||
| - manual | ||
|
|
||
| # Staging service for on_call_staging_test workflow | ||
| staging: | ||
| build: | ||
| context: ./_site | ||
| dockerfile: ../.github/scripts/staging/Dockerfile | ||
| cache_from: | ||
| - type=gha | ||
| cache_to: | ||
| - type=gha,mode=max | ||
|
||
| ports: | ||
| - 8080:80 | ||
| healthcheck: | ||
| test: ["CMD", "curl", "-o", "/dev/null", "-s", "http://localhost"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| start_period: 30s | ||
Uh oh!
There was an error while loading. Please reload this page.