File tree 6 files changed +17
-22
lines changed
6 files changed +17
-22
lines changed Original file line number Diff line number Diff line change @@ -115,10 +115,6 @@ jobs:
115
115
password : ${{ secrets.DOCKERHUB_PASS }}
116
116
repository : redpwn/rctf
117
117
# TODO: handle tagging releases correctly
118
- tags : ${{ github.sha }}
118
+ tags : master
119
+ tag_with_sha : true
119
120
# TODO: add cache_froms once we have full releases
120
- - name : Deploy installer
121
- uses : netlify/actions/build@master
122
- env :
123
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
124
- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_INSTALL_SITE_ID }}
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ yarn-error.log*
10
10
/conf.d /*
11
11
! /conf.d /.keep
12
12
/docs /site
13
- /install /build
14
13
15
14
# Upload provider dir
16
15
/uploads
Original file line number Diff line number Diff line change 1
1
version : ' 2.2'
2
2
services :
3
3
rctf :
4
- image : redpwn/rctf:${RCTF_GIT_COMMIT }
4
+ image : redpwn/rctf:${RCTF_GIT_REF }
5
5
restart : always
6
6
ports :
7
7
- ' 127.0.0.1:8080:80'
@@ -11,11 +11,6 @@ services:
11
11
- .env
12
12
environment :
13
13
- PORT=80
14
- - RCTF_DATABASE_HOST=postgres
15
- - RCTF_DATABASE_DATABASE=rctf
16
- - RCTF_DATABASE_USERNAME=rctf
17
- - RCTF_REDIS_HOST=redis
18
- - RCTF_DATABASE_MIGRATE=before
19
14
volumes :
20
15
- ./conf.d:/app/conf.d
21
16
depends_on :
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -67,14 +67,14 @@ do_install() {
67
67
68
68
info " Configuring rCTF..."
69
69
70
- RCTF_GIT_COMMIT =" ${RCTF_GIT_COMMIT :- " {{git_commit}} " } "
70
+ RCTF_GIT_REF =" ${RCTF_GIT_REF :- " master " } "
71
71
72
72
mkdir -p conf.d data/rctf-postgres data/rctf-redis
73
73
74
74
printf " %s\n" \
75
75
" RCTF_DATABASE_PASSWORD=$( get_key) " \
76
76
" RCTF_REDIS_PASSWORD=$( get_key) " \
77
- " RCTF_GIT_COMMIT= $RCTF_GIT_COMMIT " \
77
+ " RCTF_GIT_REF= $RCTF_GIT_REF " \
78
78
> .env
79
79
80
80
printf " %s\n" \
@@ -94,9 +94,20 @@ do_install() {
94
94
" endTime: $( date -d +1week +%s) 000" \
95
95
> conf.d/02-ctf.yaml
96
96
97
+ printf " %s\n" \
98
+ " database:" \
99
+ " sql:" \
100
+ " host: postgres" \
101
+ " user: rctf" \
102
+ " database: rctf" \
103
+ " redis:" \
104
+ " host: redis" \
105
+ " migrate: before" \
106
+ > conf.d/03-db.yaml
107
+
97
108
info " Downloading rCTF..."
98
109
99
- curl -fsSO " https://raw.githubusercontent.com/redpwn/rctf/$RCTF_GIT_COMMIT /docker-compose.yml"
110
+ curl -fsSO " https://raw.githubusercontent.com/redpwn/rctf/$RCTF_GIT_REF /docker-compose.yml"
100
111
docker-compose pull
101
112
102
113
info " Finished installation to ${RCTF_INSTALL_PATH} ."
You can’t perform that action at this time.
0 commit comments