-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (60 loc) · 2.04 KB
/
Copy pathupload.yaml
File metadata and controls
69 lines (60 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
on:
push:
branches: ['master']
paths:
- 'assets/**'
concurrency:
group: assets-build-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: olegsvs/monopoly-assets-2025
build-args: |
GIT_COMMIT_SHA=${{ github.sha }}
- name: Success build to telegram
if: success()
run: |
msg_text='✅ Igropolius assets build success!'
curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TG_TOKEN }}/sendMessage' \
-d "message_thread_id=4632&chat_id=-1002576065779_4632&text=${msg_text}&"
- name: Failure build to telegram
if: failure()
run: |
msg_text='⚠️ Igropolius assets build failed!'
curl -s -X POST 'https://api.telegram.org/bot${{ secrets.TG_TOKEN }}/sendMessage' \
-d "message_thread_id=4632&chat_id=-1002576065779_4632&text=${msg_text}&"
call-deploy-to-server1:
needs: build
uses: ./.github/workflows/deploy_to_server.yml
secrets:
host: ${{ secrets.HOST_SERVER1 }}
username: ${{ secrets.USERNAME_SERVER1 }}
password: ${{ secrets.PASSWORD_SERVER1 }}
port: ${{ secrets.PORT_SERVER1 }}
server_name: 'server1'
tg_token: ${{ secrets.TG_TOKEN }}
call-deploy-to-server2:
needs: build
uses: ./.github/workflows/deploy_to_server.yml
secrets:
host: ${{ secrets.HOST_SERVER2 }}
username: ${{ secrets.USERNAME_SERVER2 }}
password: ${{ secrets.PASSWORD_SERVER2 }}
port: ${{ secrets.PORT_SERVER2 }}
server_name: 'server2'
tg_token: ${{ secrets.TG_TOKEN }}