fix(config): align Gitea URL and secrets across services
Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
Some checks are pending
Check Python Version Consistency / Check Python Version (push) Waiting to run
This commit is contained in:
parent
9c37c22c4d
commit
037885349c
|
|
@ -11,7 +11,7 @@ steps:
|
||||||
- '-c'
|
- '-c'
|
||||||
- |
|
- |
|
||||||
git clone --depth=1 --branch=main \
|
git clone --depth=1 --branch=main \
|
||||||
http://34.59.131.162:3000/chris/osvauco.git /workspace/src
|
http://34.170.51.84:3000/chris/osvauco.git /workspace/src
|
||||||
cp -r /workspace/src/. /workspace/
|
cp -r /workspace/src/. /workspace/
|
||||||
|
|
||||||
# Steg 1: Bygg Docker-image
|
# Steg 1: Bygg Docker-image
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ class GiteaClient:
|
||||||
Token fra GITEA_TOKEN env eller Secret Manager.
|
Token fra GITEA_TOKEN env eller Secret Manager.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, base_url: str = "http://34.67.252.59:3000", token: str = None):
|
def __init__(self, base_url: str = "http://34.170.51.84:3000", token: str = None):
|
||||||
self.base_url = base_url.rstrip("/")
|
self.base_url = base_url.rstrip("/")
|
||||||
self.token = token or os.environ.get("GITEA_TOKEN", "")
|
self.token = token or os.environ.get("GITEA_TOKEN", "")
|
||||||
self.headers = {"Authorization": f"token {self.token}", "Content-Type": "application/json"}
|
self.headers = {"Authorization": f"token {self.token}", "Content-Type": "application/json"}
|
||||||
|
|
|
||||||
|
|
@ -40,8 +40,18 @@ spec:
|
||||||
- env:
|
- env:
|
||||||
- name: GOOGLE_CLOUD_PROJECT
|
- name: GOOGLE_CLOUD_PROJECT
|
||||||
value: propane-will-491900-m5
|
value: propane-will-491900-m5
|
||||||
|
- name: GITEA_URL
|
||||||
|
value: http://34.170.51.84:3000
|
||||||
|
- name: GITEA_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: latest
|
||||||
|
name: gitea-token
|
||||||
- name: INTERNAL_API_KEY
|
- name: INTERNAL_API_KEY
|
||||||
value: 8yHesvMPYZuKbsPmR01NFvBjNRGLytYWnM9yoVQl-MQ
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
key: latest
|
||||||
|
name: INTERNAL_API_KEY
|
||||||
- name: STATIC_BUCKET
|
- name: STATIC_BUCKET
|
||||||
value: opax-vauco-static
|
value: opax-vauco-static
|
||||||
- name: CLOUD_RUN_SERVICE
|
- name: CLOUD_RUN_SERVICE
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user