File tree 4 files changed +30
-3
lines changed
4 files changed +30
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : review
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened, synchronize]
6
+
7
+ jobs :
8
+ review :
9
+ timeout-minutes : 30
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : checkout
14
+ uses : actions/checkout@v1
15
+
16
+ - name : project-version-check
17
+ id : project_version_check
18
+ uses : avides/actions-project-version-check@v1
19
+ with :
20
+ token : ${{ secrets.GITHUB_TOKEN }}
21
+ file-to-check : version.txt
22
+ additional-files-to-check : README.md
23
+
24
+ - name : build-image
25
+ run : |
26
+ export PROJECT_VERSION=${{ steps.project_version_check.outputs.version }}
27
+ docker build -t ${GITHUB_REPOSITORY}:${PROJECT_VERSION} -t ${GITHUB_REPOSITORY}:latest .
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ docker run \
26
26
--env MYSQL_BACKUP_USER="root" \
27
27
--env MYSQL_BACKUP_PASS="MYSQL_BACKUP_PASS" \
28
28
-p 9300:9300 \
29
- avides/mysql-s3-backup:2.5.0
29
+ avides/mysql-s3-backup:2.5.1
30
30
```
31
31
32
32
### Build & Test
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function backup_mysql
46
46
tail -n1 pipe > dump_logs/$databaseName /$tableName .log &
47
47
PIDOF_SUCCESS_CHECK=$!
48
48
49
- mysqldump --host=$DB_HOST --port=$DB_PORT --user=$DB_USER --password=$DB_PASSWORD $databaseName $tableName | tee pipe | gzip > $STORAGE_PATH /$databaseName /$tableName .sql.gz
49
+ mysqldump --max_allowed_packet=512M -- host=$DB_HOST --port=$DB_PORT --user=$DB_USER --password=$DB_PASSWORD $databaseName $tableName | tee pipe | gzip > $STORAGE_PATH /$databaseName /$tableName .sql.gz
50
50
rm pipe
51
51
wait $PIDOF_SUCCESS_CHECK
52
52
Original file line number Diff line number Diff line change 1
- 2.5.0
1
+ 2.5.1
You can’t perform that action at this time.
0 commit comments