Skip to content

Commit d660a2a

Browse files
committed
move deploy to separate file
1 parent 2bfc59c commit d660a2a

3 files changed

Lines changed: 27 additions & 20 deletions

File tree

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,13 @@ on:
44
push:
55
branches-ignore:
66
- main
7-
tags:
8-
- '*'
97
workflow_dispatch: {}
108

119
jobs:
12-
run_tests:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v4
17-
- name: Install Docker Compose
18-
run: |
19-
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m) > ~/docker-compose
20-
chmod +x ~/docker-compose
21-
sudo mv ~/docker-compose /usr/local/bin/docker-compose
22-
- name: Build the app
23-
run: make up
24-
- name: Install Solr Documents
25-
run: make load-data
26-
- name: Run relevancy Tests
27-
run: make test
28-
2910
run_deploy:
3011
needs: run_tests
3112
runs-on: ubuntu-latest
13+
3214
steps:
3315
- name: Check if tag is on main
3416
id: check_main
@@ -61,4 +43,4 @@ jobs:
6143
SOLR_USER: ${{ secrets.SOLR_USER }}
6244
SOLR_PASSWORD: ${{ secrets.SOLR_PASSWORD }}
6345
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64-
run: bash .github/workflows/deploy.sh
46+
run: bash .github/workflows/scripts/deploy.sh

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
workflow_dispatch: {}
8+
9+
jobs:
10+
run_tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Install Docker Compose
16+
run: |
17+
curl -L https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m) > ~/docker-compose
18+
chmod +x ~/docker-compose
19+
sudo mv ~/docker-compose /usr/local/bin/docker-compose
20+
- name: Build the app
21+
run: make up
22+
- name: Install Solr Documents
23+
run: make load-data
24+
- name: Run relevancy Tests
25+
run: make test

0 commit comments

Comments
 (0)