Skip to content

Commit 331081b

Browse files
committed
Merge branch 'main' into 104-add-datadog-agent-to-instance
Updated to include new deploy methods
2 parents 22a5a9e + 4a44d7c commit 331081b

5 files changed

Lines changed: 33 additions & 5 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ jobs:
4848
run: npx --yes package-lock-utd@1.1.0
4949
- name: Install app dependencies
5050
run: npm ci
51+
- name: Build application
52+
run: npm run build
5153
- name: Run deploy shell script
52-
run: cd devops && bash ./deploy.sh -p -c
54+
run: cd devops && bash ./deploy.sh -p

.github/workflows/stale-bot.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Mark issues and PRs as stale
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # every day at midnight
6+
7+
jobs:
8+
stale:
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Stale Action
15+
uses: actions/stale@v9
16+
with:
17+
stale-issue-label: 'stale'
18+
stale-pr-label: 'stale'
19+
days-before-stale: 180
20+
days-before-close: -1
21+
stale-issue-message: >
22+
This issue has been automatically marked as stale because it has not had activity within 180 days.
23+
stale-pr-message: >
24+
This pull request has been automatically marked as stale because it has not had activity within 180 days.
25+
operations-per-run: 100

data/gtfs-present.tar.gz

-953 KB
Binary file not shown.

data/gtfs-regional-rail.tar.gz

79.9 KB
Binary file not shown.

devops/playbook.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@
9797
args:
9898
chdir: /home/ubuntu/regional-rail-explorer
9999

100-
- name: build application
101-
shell: npm run build
102-
args:
103-
chdir: /home/ubuntu/regional-rail-explorer
100+
- name: sync built .next directory from runner
101+
synchronize:
102+
src: "{{ playbook_dir }}/../.next/"
103+
dest: /home/ubuntu/regional-rail-explorer/.next/
104+
delete: yes
104105

105106
- name: Make sure a service unit is running and enabled
106107
become: yes

0 commit comments

Comments
 (0)