File tree 2 files changed +14
-28
lines changed
2 files changed +14
-28
lines changed Original file line number Diff line number Diff line change @@ -66,32 +66,18 @@ jobs:
66
66
env :
67
67
DATABASE_URL : postgres://postgres:postgres@localhost:5432/api
68
68
69
- deploy_dev :
70
- needs :
71
- - test
72
- if : github.ref == 'refs/heads/dev' && ${{vars.DEPLOY_SSH_HOST}} != ''
73
- name : Deploy Dev
69
+ docker :
74
70
runs-on : ubuntu-latest
75
- steps :
76
- - name : Checkout 🛎
77
- uses : actions/checkout@v4
71
+ needs : [test]
72
+ if : github.ref == 'refs/heads/dev'
73
+
74
+ permissions :
75
+ contents : read
76
+ packages : write
77
+ id-token : write
78
78
79
- - name : Deploy
80
-
79
+ steps :
80
+ - name : Docker Build and Push
81
+ uses : cartoway/docker-compose-build-push-action@main
81
82
with :
82
- host : ${{vars.DEPLOY_SSH_HOST}}
83
- username : ${{vars.DEPLOY_SSH_USERNAME}}
84
- key : ${{secrets.DEPLOY_SSH_KEY_DEV}}
85
- port : 2222
86
- script : |
87
- echo -n 'Deployment started at: ' &&
88
- date -u &&
89
- cd ${{vars.DEPLOY_SSH_PATH}} &&
90
- git fetch &&
91
- git checkout -f origin/dev &&
92
- git submodule init &&
93
- git submodule update &&
94
- docker compose --profile "*" build &&
95
- docker compose up -d &&
96
- echo -n 'Deployment completed at: ' &&
97
- date -u
83
+ registry_password : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ services:
18
18
build :
19
19
context : .
20
20
dockerfile : script.Dockerfile
21
+ image : ghcr.io/teritorio/clearance-script:dev
21
22
environment :
22
23
- DATABASE_URL=postgresql://postgres@postgres:5432/postgres
23
24
- PUBLIC_URL=${PUBLIC_URL}
@@ -32,6 +33,7 @@ services:
32
33
api :
33
34
build :
34
35
context : .
36
+ image : ghcr.io/teritorio/clearance-api:dev
35
37
environment :
36
38
- RAILS_ENV=${RAILS_ENV:-production}
37
39
- SECRET_KEY_BASE=${SECRET_KEY_BASE:-Toe8eihai5ieShai}
@@ -51,8 +53,6 @@ services:
51
53
restart : unless-stopped
52
54
53
55
frontend :
54
- build :
55
- context : frontend
56
56
image : ghcr.io/teritorio/clearance-frontend:develop
57
57
environment :
58
58
- NUXT_PUBLIC_API=${PUBLIC_URL}/api/0.1
You can’t perform that action at this time.
0 commit comments