File tree Expand file tree Collapse file tree 4 files changed +34
-19
lines changed Expand file tree Collapse file tree 4 files changed +34
-19
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- ' *'
7
+ branches :
8
+ - master
7
9
8
10
jobs :
9
11
docker :
10
12
runs-on : ubuntu-latest
11
13
steps :
12
- -
13
- name : Checkout
14
+ - name : Checkout
14
15
uses : actions/checkout@v3
15
- -
16
- name : Set up QEMU
16
+
17
+ - name : Set up QEMU
17
18
uses : docker/setup-qemu-action@v2
18
- -
19
- name : Set up Docker Buildx
19
+
20
+ - name : Set up Docker Buildx
20
21
uses : docker/setup-buildx-action@v2
21
- -
22
- name : Login to DockerHub
22
+
23
+ - name : Login to DockerHub
23
24
uses : docker/login-action@v2
24
25
with :
25
26
username : mesudip
26
27
password : ${{ secrets.DOCKERHUB_TOKEN }}
27
28
28
- -
29
- name : Build and push
29
+ - name : Build and push for tags
30
+ if : startsWith(github.ref, 'refs/tags/')
30
31
uses : docker/build-push-action@v3
31
32
with :
32
33
file : Dockerfile
33
34
context : .
34
- platforms : linux/amd64, linux/arm64
35
+ platforms : linux/amd64,linux/arm64
35
36
push : true
36
37
tags : |
37
38
mesudip/nginx-proxy:${{ github.ref_name }}
38
39
mesudip/nginx-proxy:latest
40
+
41
+ - name : Build and push for main branch
42
+ if : github.ref == 'refs/heads/master'
43
+ uses : docker/build-push-action@v3
44
+ with :
45
+ file : Dockerfile
46
+ context : .
47
+ platforms : linux/amd64,linux/arm64
48
+ push : true
49
+ tags : mesudip/nginx-proxy:${{ github.sha }}
Original file line number Diff line number Diff line change 1
1
venv /
2
+ .venv /
3
+
2
4
__pycache__ /
3
5
/.idea /
4
6
/.run_data /
5
- /run_data
6
- .env
7
- .venv
7
+ run_data /
8
+ .env
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ def eventLoop():
73
73
process_network_event (eventAction , event )
74
74
elif eventType == "container" :
75
75
if eventAction == "health_status" :
76
- break
77
- #process_container_health_event(event)
76
+ # process_container_health_event(event)
77
+ continue
78
78
else :
79
79
process_container_event (eventAction , event )
80
80
@@ -119,7 +119,8 @@ def process_network_event(action, event):
119
119
try :
120
120
server = WebServer (client )
121
121
eventLoop ()
122
- except (KeyboardInterrupt , SystemExit ):
122
+ except (KeyboardInterrupt , SystemExit ) as e :
123
+ # traceback.print_exception(e)
123
124
print ("-------------------------------\n Performing Graceful ShutDown !!" )
124
125
if server is not None :
125
126
server .cleanup ()
Original file line number Diff line number Diff line change 7
7
#
8
8
9
9
mkdir -p ./.run_data/conf.d
10
- #
11
- DUMMY_NGINX=y CHALLENGE_DIR=./.run_data/acme_challenges SSL_DIR=./.run_data NGINX_CONF_DIR=./.run_data python3 main.py
10
+
11
+ LETSENCRYPT_API=https://acme-staging-v02.api.letsencrypt.org/directory \
12
+ CHALLENGE_DIR=./.run_data/acme_challenges \
13
+ DUMMY_NGINX=y SSL_DIR=./.run_data NGINX_CONF_DIR=./.run_data python3 main.py
You can’t perform that action at this time.
0 commit comments