File tree 5 files changed +20
-41
lines changed
5 files changed +20
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
10
10
jobs :
11
11
test :
12
- name : Test / OS ${{ matrix.platform }} / Node ${{ matrix.node }}
13
- strategy :
14
- fail-fast : false
15
- matrix :
16
- platform : [ubuntu-latest]
17
- node : ['14']
18
-
19
- runs-on : ${{ matrix.platform }}
20
-
12
+ name : Test
13
+ runs-on : ubuntu-20.04
21
14
steps :
22
15
- uses : actions/checkout@v2
23
16
24
- - name : Set up DB
25
- run : docker-compose up -d
26
-
27
- - uses : actions/cache@v1
28
- with :
29
- path : ~/.npm
30
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
31
- restore-keys : |
32
- ${{ runner.os }}-node-
33
-
34
17
- name : Set up Node
35
18
uses : actions/setup-node@v2
36
19
with :
37
- node-version : ${{ matrix.node }}
20
+ node-version : " 14 "
38
21
39
22
- run : |
40
- npm ci
23
+ docker-compose up --detach
24
+ export PG_META_PORT=8000
25
+ npm clean-install
41
26
npm run dev &
42
- sleep 30
27
+ npx wait-for-localhost-cli --use-get $PG_META_PORT
43
28
npm test
Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
docs :
11
- name : Publish docs / OS ${{ matrix.os }} / Node ${{ matrix.node }}
12
- strategy :
13
- matrix :
14
- os :
15
- - ubuntu-latest
16
- node :
17
- - ' 14'
18
-
19
- runs-on : ${{ matrix.os }}
20
-
11
+ name : Publish docs
12
+ runs-on : ubuntu-20.04
21
13
steps :
22
14
- uses : actions/checkout@v2
23
15
24
16
- uses : actions/setup-node@v2
25
17
with :
26
- node-version : ${{ matrix.node }}
18
+ node-version : " 14 "
27
19
28
20
- run : |
29
- npm ci
21
+ npm clean-install
30
22
npm run docs:export
31
23
32
24
- name : Generate Swagger UI
Original file line number Diff line number Diff line change 49
49
run : |
50
50
npm clean-install
51
51
npm run pkg
52
- tar -czvf postgres-meta-${{ needs.semantic-release.outputs.new-release-version }}-x86_64-linux-gnu.tar.gz -C ./bin postgres-meta-linux
53
- tar -czvf postgres-meta-${{ needs.semantic-release.outputs.new-release-version }}-x86_64-apple-darwin.tar.gz -C ./bin postgres-meta-macos
54
- tar -czvf postgres-meta-${{ needs.semantic-release.outputs.new-release-version }}-x86_64-pc-windows.tar.gz -C ./bin postgres-meta-win.exe
52
+ mv bin/postgres-meta-linux postgres-meta
53
+ tar -czvf postgres-meta-${{ needs.semantic-release.outputs.new-release-version }}-x86_64-linux-gnu.tar.gz postgres-meta
54
+ mv bin/postgres-meta-macos postgres-meta
55
+ tar -czvf postgres-meta-${{ needs.semantic-release.outputs.new-release-version }}-x86_64-apple-darwin.tar.gz postgres-meta
56
+ mv bin/postgres-meta-win.exe postgres-meta.exe
57
+ tar -czvf postgres-meta-${{ needs.semantic-release.outputs.new-release-version }}-x86_64-pc-windows.tar.gz postgres-meta.exe
55
58
56
59
- uses : softprops/action-gh-release@v1
57
60
with :
89
92
90
93
- uses : docker/build-push-action@v2
91
94
with :
95
+ context : .
92
96
push : true
93
97
tags : supabase/postgres-meta:latest,supabase/postgres-meta:v${{ needs.semantic-release.outputs.new-release-version }}
94
98
platforms : linux/amd64,linux/arm64
Original file line number Diff line number Diff line change 2
2
# docker run -t -i -p8080:8080 postgres-meta
3
3
4
4
FROM debian:stable-slim
5
- COPY ./ bin/postgres-meta-linux .
5
+ COPY bin/postgres-meta-linux .
6
6
ENV PG_META_PORT=8080
7
- ENTRYPOINT "./ postgres-meta-linux"
7
+ ENTRYPOINT [ " postgres-meta-linux"]
8
8
EXPOSE 8080
You can’t perform that action at this time.
0 commit comments