Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit aec2325

Browse files
Update master from integration (#416)
* set strapi env var on devhub-content-integration jobs (#414) * Update Dockerfile (#415) * Update deploy-integration-ec2.yml Update deploy action to start 2 workers * Update deploy-integration-ec2.yml * Update deploy-production-ec2.yml * Apply suggestions from code review Co-authored-by: madelinezec <[email protected]>
1 parent e56fed8 commit aec2325

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.github/workflows/deploy-integration-ec2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
cd docs-worker-pool
2323
git fetch origin
2424
git checkout origin/integration
25-
sudo docker system prune
25+
sudo docker system prune -af
2626
sudo docker build --no-cache --tag integration .
2727
sudo docker stop $(sudo docker ps -a -q)
28-
sudo docker build --no-cache --tag stage .
28+
sudo sh rundocker.sh
2929
sudo sh rundocker.sh
3030
'
3131

.github/workflows/deploy-production-ec2.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
cd docker/docs-worker-pool
2323
git fetch origin
2424
git checkout $(git describe --tags)
25-
sudo docker system prune
25+
sudo docker system prune -af
2626
sudo docker build --no-cache --tag production .
2727
sudo docker stop $(sudo docker ps -a -q)
2828
sudo sh rundocker.sh
@@ -45,7 +45,7 @@ jobs:
4545
cd docker/docs-worker-pool
4646
git fetch origin
4747
git checkout $(git describe --tags)
48-
sudo docker system prune
48+
sudo docker system prune -af
4949
sudo docker build --no-cache --tag production .
5050
sudo docker stop $(sudo docker ps -a -q)
5151
sudo sh rundocker.sh

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ RUN python3 -m pip install pip==20.2 flit==3.0.0
4242
RUN git clone https://github.com/mongodb/snooty-parser.git && \
4343
cd snooty-parser && \
4444
git fetch --tags && \
45-
git checkout v0.9.6 && \
45+
git checkout v0.9.7 && \
4646
FLIT_ROOT_INSTALL=1 python3 -m flit install
4747

4848
# install snooty front-end
4949
RUN git clone https://github.com/mongodb/snooty.git snooty
5050
RUN cd snooty && \
5151
git fetch --all && \
52-
git checkout v0.9.8 && \
52+
git checkout v0.9.9 && \
5353
npm install && \
5454
git clone https://github.com/mongodb/docs-tools.git docs-tools && \
5555
mkdir -p ./static/images && \

worker/jobTypes/githubJob.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@ class GitHubJobClass {
326326
// thus why the series of makefile targets are slightly different btwn prod and staging jobs
327327
if (this.buildNextGen() && !isProdDeployJob) {
328328
commandsToBuild[commandsToBuild.length - 1] = 'make next-gen-html';
329+
//tell Gatsby to pull in draft data from CMS
330+
//TODO: this stanza can be removed when devhub is entirely off autobuilder
331+
if (this.currentJob.payload.repoName === 'devhub-content-integration') {
332+
commandsToBuild[commandsToBuild.length - 1] += ` STRAPI_PUBLICATION_STATE=preview`;
333+
}
329334
}
330335

331336
//check if prod deploy job

0 commit comments

Comments
 (0)