Skip to content

Commit 45c42b6

Browse files
committed
Fix publish
1 parent 9ce2393 commit 45c42b6

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

.github/workflows/publish.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -82,61 +82,63 @@ jobs:
8282
username: ${{ secrets.DOCKERHUB_USERNAME }}
8383
password: ${{ secrets.DOCKERHUB_TOKEN }}
8484

85-
- name: Build crapi-identity all platforms and conditionally push to Docker Hub
85+
- name: Build crapi-identity all platforms and push to Docker Hub
8686
uses: docker/build-push-action@v3
8787
with:
8888
context: ./services/identity
8989
tags: crapi/crapi-identity:${{ env.TAG_LATEST }},crapi/crapi-identity:${{ env.TAG_NAME }}
9090
platforms: ${{ env.PLATFORMS }}
91+
push: true
9192
cache-from: type=gha,scope=identity-service
9293
cache-to: type=gha,mode=max,scope=identity-service
9394

94-
- name: Build crapi-workshop all platforms and conditionally push to Docker Hub
95+
- name: Build crapi-workshop all platforms and push to Docker Hub
9596
uses: docker/build-push-action@v3
9697
with:
9798
context: ./services/workshop
9899
tags: crapi/crapi-workshop:${{ env.TAG_LATEST }},crapi/crapi-workshop:${{ env.TAG_NAME }}
99100
platforms: ${{ env.PLATFORMS }}
101+
push: true
100102
cache-from: type=gha,scope=workshop-service
101103
cache-to: type=gha,mode=max,scope=workshop-service
102104

103-
- name: Build crapi-community all platforms and conditionally push to Docker Hub
105+
- name: Build crapi-community all platforms and push to Docker Hub
104106
uses: docker/build-push-action@v3
105107
with:
106108
context: ./services/community
107109
tags: crapi/crapi-community:${{ env.TAG_LATEST }},crapi/crapi-community:${{ env.TAG_NAME }}
108110
platforms: ${{ env.PLATFORMS }}
111+
push: true
109112
cache-from: type=gha,scope=community-service
110113
cache-to: type=gha,mode=max,scope=community-service
111114

112-
- name: Build crapi-web all platforms and conditionally push to Docker Hub
115+
- name: Build crapi-web all platforms and push to Docker Hub
113116
uses: docker/build-push-action@v3
114117
with:
115118
context: ./services/web
116119
tags: crapi/crapi-web:${{ env.TAG_LATEST }},crapi/crapi-web:${{ env.TAG_NAME }}
117120
platforms: ${{ env.PLATFORMS }}
121+
push: true
118122
cache-from: type=gha,scope=web-service
119123
cache-to: type=gha,mode=max,scope=web-service
120124

121-
- name: Build gateway-service all platforms and conditionally push to Docker Hub
125+
- name: Build gateway-service all platforms and push to Docker Hub
122126
uses: docker/build-push-action@v3
123127
with:
124128
context: ./services/gateway-service
125129
tags: crapi/gateway-service:${{ env.TAG_LATEST }},crapi/gateway-service:${{ env.TAG_NAME }}
126130
platforms: ${{ env.PLATFORMS }}
131+
push: true
127132
cache-from: type=gha,scope=gateway-service
128133
cache-to: type=gha,mode=max,scope=gateway-service
129134

130-
- name: Build mailhog all platforms and conditionally push to Docker Hub
135+
- name: Build mailhog all platforms and push to Docker Hub
131136
uses: docker/build-push-action@v3
132137
with:
133138
context: ./services/mailhog
134139
tags: crapi/mailhog:${{ env.TAG_LATEST }},crapi/mailhog:${{ env.TAG_NAME }}
135140
platforms: ${{ env.PLATFORMS }}
141+
push: true
136142
cache-from: type=gha,scope=mailhog-service
137143
cache-to: type=gha,mode=max,scope=mailhog-service
138144

139-
- name: Dump docker logs on failure
140-
if: failure()
141-
uses: jwalton/gh-docker-logs@v2
142-

services/workshop/runner.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ if [ "$TLS_ENABLED" = "true" ] || [ "$TLS_ENABLED" = "1" ]; then
3939
echo "TLS_CERTIFICATE: $TLS_CERTIFICATE"
4040
echo "TLS_KEY: $TLS_KEY"
4141
# python3 manage.py runserver_plus --cert-file $TLS_CERTIFICATE --key-file $TLS_KEY --noreload 0.0.0.0:${SERVER_PORT}
42-
gunicorn --workers=2 --threads=10 --timeout 60 --bind 0.0.0.0:${SERVER_PORT} --certfile $TLS_CERTIFICATE --keyfile $TLS_KEY --log-level=debug crapi_site.wsgi
42+
gunicorn --workers=1 --threads=20 --timeout 60 --bind 0.0.0.0:${SERVER_PORT} --certfile $TLS_CERTIFICATE --keyfile $TLS_KEY --log-level=debug crapi_site.wsgi
4343
else
4444
echo "TLS is DISABLED"
4545
# python3 manage.py runserver 0.0.0.0:${SERVER_PORT} --noreload
46-
gunicorn --workers=2 --threads=10 --timeout 60 --bind 0.0.0.0:${SERVER_PORT} --log-level=debug crapi_site.wsgi
46+
gunicorn --workers=1 --threads=20 --timeout 60 --bind 0.0.0.0:${SERVER_PORT} --log-level=debug crapi_site.wsgi
4747
fi

0 commit comments

Comments
 (0)