-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from J-A-A-M/develop
3.9
- Loading branch information
Showing
72 changed files
with
2,660 additions
and
1,551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,13 +44,13 @@ jobs: | |
with: | ||
beta_binary_path: ${{ github.workspace }}/JAAM_${{ env.BETA_VERSION }}.bin | ||
version: ${{ inputs.release-version }} | ||
beta_build: ${{ github.run_number }} | ||
beta_build: ${{ github.run_number }} | ||
- name: Commit changes | ||
id: commit_changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Beta ${{ env.BETA_VERSION }}" | ||
file_pattern: ${{ github.workspace }}/bin_beta/ ${{ github.workspace }}/pages/ | ||
file_pattern: ${{ github.workspace }}/bin_beta/ ${{ github.workspace }}/flasher/ | ||
- name: Create Beta Pre Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
|
@@ -61,7 +61,7 @@ jobs: | |
generateReleaseNotes: true | ||
allowUpdates: true | ||
prerelease: true | ||
makeLatest: false | ||
makeLatest: false | ||
- name: Update server test bin list | ||
uses: appleboy/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,10 +38,10 @@ on: | |
type: boolean | ||
default: false | ||
description: SVG Generator | ||
redeploy_explosions: | ||
redeploy_etryvoga: | ||
type: boolean | ||
default: false | ||
description: Explosions | ||
description: Etryvoga | ||
|
||
run-name: Deploy Microservices from '${{ github.ref_name }}' branch | ||
jobs: | ||
|
@@ -58,7 +58,7 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_tcp_server.sh -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Redeploy WebSockets | ||
|
@@ -71,9 +71,9 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_websocket_server.sh -m ${{ secrets.MEMCACHED_HOST }} | ||
bash redeploy_websocket_server.sh -m ${{ secrets.MEMCACHED_HOST }} -s ${{ secrets.API_SECRET }} -i ${{ secrets.MEASUREMENT_ID }} | ||
- name: Redeploy Update Server (bin list) | ||
if: ${{ inputs.redeploy_update_server || inputs.redeploy_all }} | ||
uses: appleboy/[email protected] | ||
|
@@ -84,7 +84,7 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_update_server.sh -s '/root/ukraine_alarm_map/bin' -sb '/root/ukraine_alarm_map/bin_beta' -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Redeploy Web Server | ||
|
@@ -97,7 +97,7 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_web_server.sh -d ${{ secrets.WEB_TOKEN }} -p 80 -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Redeploy Weather | ||
|
@@ -110,7 +110,7 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_weather.sh -w ${{ secrets.WEATHER_TOKEN }} -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Redeploy Updater | ||
|
@@ -123,7 +123,7 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_updater.sh -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Redeploy Svg Generator | ||
|
@@ -136,11 +136,11 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_svg_generator.sh -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Redeploy Explosions | ||
if: ${{ inputs.redeploy_explosions || inputs.redeploy_all }} | ||
- name: Redeploy Etryvoga | ||
if: ${{ inputs.redeploy_etryvoga || inputs.redeploy_all }} | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SERVER_IP }} | ||
|
@@ -149,9 +149,9 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_explosions.sh -e ${{ secrets.ETRYVOGA_HOST }} -m ${{ secrets.MEMCACHED_HOST }} | ||
bash redeploy_etryvoga.sh -e ${{ secrets.ETRYVOGA_HOST }} -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Redeploy Alerts | ||
if: ${{ inputs.redeploy_alerts || inputs.redeploy_all }} | ||
uses: appleboy/[email protected] | ||
|
@@ -162,6 +162,14 @@ jobs: | |
script: | | ||
cd /root/ukraine_alarm_map/deploy/ | ||
git fetch --all | ||
git checkout ${{ github.ref_name }} | ||
git switch ${{ github.ref_name }} | ||
git pull | ||
bash redeploy_alerts.sh -a ${{ secrets.AIR_ALARM_API_KEY }} -p 2 -m ${{ secrets.MEMCACHED_HOST }} | ||
- name: Clear unused images | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SERVER_IP }} | ||
username: ${{ secrets.SERVER_SSH_USER }} | ||
password: ${{ secrets.SERVER_SSH_PASSWORD }} | ||
script: | | ||
docker image prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM python:3.10.6 | ||
ADD alerts.py . | ||
ADD requirements.txt . | ||
RUN pip install -r requirements.txt --no-cache-dir && rm -f requirements.txt | ||
FROM python:3.12-slim | ||
COPY alerts.py . | ||
RUN --mount=type=bind,source=requirements.txt,target=/tmp/requirements.txt \ | ||
python -m pip install --no-cache-dir -r /tmp/requirements.txt | ||
CMD python alerts.py |
Oops, something went wrong.