Merge pull request #497 from maxking/docs
Publish rolling releases on main branch
This commit is contained in:
@@ -32,7 +32,7 @@ USER = 'maxking'
|
|||||||
|
|
||||||
TAG_VAR = 'CIRCLE_TAG'
|
TAG_VAR = 'CIRCLE_TAG'
|
||||||
BRANCH_VAR = 'CIRCLE_BRANCH'
|
BRANCH_VAR = 'CIRCLE_BRANCH'
|
||||||
PRIMARY_BRANCH = 'master'
|
PRIMARY_BRANCH = 'main'
|
||||||
|
|
||||||
|
|
||||||
def tag(original, final):
|
def tag(original, final):
|
||||||
@@ -89,7 +89,7 @@ def main():
|
|||||||
elif os.environ.get(BRANCH_VAR) == PRIMARY_BRANCH:
|
elif os.environ.get(BRANCH_VAR) == PRIMARY_BRANCH:
|
||||||
img_tag = 'rolling'
|
img_tag = 'rolling'
|
||||||
else:
|
else:
|
||||||
print(f'Not running on master branch or Git tag so not publishing...')
|
print(f'Not running on {PRIMARY_BRANCH} branch or Git tag so not publishing...')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
for url in ('quay.io', 'docker.io', 'ghcr.io'):
|
for url in ('quay.io', 'docker.io', 'ghcr.io'):
|
||||||
|
|||||||
@@ -488,7 +488,7 @@ that by adding the following to your configuration:
|
|||||||
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:8000;
|
proxy_pass http://127.0.0.1:8000;
|
||||||
include uwsgi_params;
|
include uwsgi_params;
|
||||||
uwsgi_read_timeout 300;
|
uwsgi_read_timeout 300;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user