File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,7 @@ COPY --from=builder /app/target/release/delta_update /usr/bin/del
3737COPY --from=builder /app/target/release/dump_json /usr/bin/dump_json
3838COPY --from=builder /app/target/release/fix_invalid_submissions /usr/bin/fix_invalid_submissions
3939COPY --from=builder /app/target/release/run_server /usr/bin/run_server
40+
41+
42+ RUN apt-get update && apt-get install -y awscli postgresql-client
43+ ADD ./scripts/sql-backup.sh /usr/bin/sql-backup.sh
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- psql ${DATABASE_URL } -c " \copy submissions TO './submissions.csv' WITH (FORMAT CSV, HEADER)"
3+ psql ${SQL_URL } -c " \copy submissions TO './submissions.csv' WITH (FORMAT CSV, HEADER)"
44gzip submissions.csv
55aws s3 cp submissions.csv.gz s3://kenkoooo/submissions.csv.gz --acl public-read
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments