-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,4 +89,31 @@ jobs: | |
|
||
# Upload Archived Data into Bucket | ||
- name: Copy Archived Data to S3 | ||
run: aws s3 cp "$(ls data).tar.gz" s3://dievri-kgparser | ||
run: aws s3 cp "$(ls data).tar.gz" s3://dievri-kgparser | ||
|
||
# Process downloaded files | ||
- name: Prepare MySQL database | ||
run: | | ||
sudo systemctl start mysql | ||
sudo mysql -uroot -proot -e "create database actions;" | ||
- name: Parse Json Files | ||
run: java -jar kgparserSpringBoot/target/kgparser-springboot-1.0.jar "data" ${{ github.event.inputs.first_id }} ${{ github.event.inputs.last_id }} 1 "$(ls data)" | ||
|
||
- name: Create Database Dump | ||
run: sudo mysqldump -uroot -proot actions > "$(ls data).sql" | ||
|
||
- name: Upload DB Dump to s3 | ||
run: aws s3 cp "$(ls data).sql" s3://dievri-kgparser | ||
|
||
- name: Telegram Message Notify | ||
uses: appleboy/[email protected] | ||
with: | ||
format: html | ||
to: ${{ secrets.TGBOT_CHAT }} | ||
token: ${{ secrets.TGBOT_TOKEN }} | ||
message: | | ||
<strong>GitHub Player Data Downloader (Manual Dispatch)</strong> | ||
<pre><code> | ||
archive with json files and database dump uploaded to s3 | ||
</code></pre> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
spring.jpa.hibernate.ddl-auto=update | ||
#spring.datasource.url=jdbc:mysql://localhost:3306/kgparser?serverTimezone=UTC | ||
spring.datasource.url=jdbc:mysql://localhost:3306/kgparser_2020_12_28?serverTimezone=UTC&rewriteBatchedStatements=true&profileSQL=true | ||
spring.datasource.url=jdbc:mysql://localhost:3306/actions?serverTimezone=UTC&rewriteBatchedStatements=true&profileSQL=true | ||
This comment has been minimized.
Sorry, something went wrong.
dmitry-weirdo
Collaborator
|
||
spring.datasource.username=root | ||
spring.datasource.password=root | ||
|
||
|
Надо будет посмотреть, можно ли сделать запрет коммитов в мастер без PR, чтобы таких неготовых коммитов, ведущих к конфликтам, не происходило.