Skip to content

Commit a844100

Browse files
Update cicd
1 parent 0e2c35d commit a844100

4 files changed

Lines changed: 7 additions & 22 deletions

File tree

.github/workflows/linting.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,5 @@ jobs:
2828
- name: Install dependencies
2929
run: npm ci
3030

31-
- name: Create build file
32-
run: npm run set:oss
33-
3431
- name: Run ESLint
3532
run: npx eslint . --ext .js,.jsx,.ts,.tsx

.github/workflows/test.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ jobs:
2323
- name: Install dependencies
2424
run: npm ci
2525

26-
- name: Create database index.ts
27-
run: npm run set:sqlite
28-
29-
- name: Create build file
30-
run: npm run set:oss
31-
32-
- name: Generate database migrations
33-
run: npm run db:sqlite:generate
34-
35-
- name: Apply database migrations
36-
run: npm run db:sqlite:push
37-
3826
- name: Test with tsc
3927
run: npx tsc --noEmit
4028

@@ -44,7 +32,7 @@ jobs:
4432
- name: Wait for app availability
4533
run: |
4634
for i in {1..5}; do
47-
if curl --silent --fail http://localhost:3002/auth/login; then
35+
if curl --silent --fail http://localhost:3001/api/v1/traefik-config; then
4836
echo "App is up"
4937
exit 0
5038
fi
@@ -55,7 +43,4 @@ jobs:
5543
exit 1
5644
5745
- name: Build Docker image sqlite
58-
run: make build-sqlite
59-
60-
- name: Build Docker image pg
61-
run: make build-pg
46+
run: make build

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@ build-release:
88
exit 1; \
99
fi
1010
docker buildx build \
11-
--build-arg DATABASE=sqlite \
1211
--platform linux/arm64,linux/amd64 \
1312
--tag fosrl/pangolin-node:latest \
1413
--tag fosrl/pangolin-node:$(major_tag) \
1514
--tag fosrl/pangolin-node:$(minor_tag) \
1615
--tag fosrl/pangolin-node:$(tag) \
1716
--push .
1817

18+
build:
19+
docker build -t pangolin-node .
20+
1921
test:
2022
docker run -it -p 3001:3001 -p 3002:3002 -v ./config:/app/config fosrl/pangolin-node:latest
2123

config/config.example.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ managed:
33
secret: "0qe1exin8se0b35thfekfcg7vzie7e1nqmmp78iqhm5wxp5w"
44

55
gerbil:
6-
endpoint: p.fosrl.io
6+
base_endpoint: p.fosrl.io
7+
start_port: 51820

0 commit comments

Comments
 (0)