adjust aliases and deployment
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed

This commit is contained in:
Sergo 2023-07-29 23:06:08 +03:00
parent 0eca198481
commit 3b98d47665
2 changed files with 16 additions and 1 deletions

View File

@ -83,6 +83,21 @@ spec:
value: https://walias-msergo.codemowers.ee value: https://walias-msergo.codemowers.ee
- name: NODE_ENV - name: NODE_ENV
value: prod value: prod
- name: WILDDUCK_URL
valueFrom:
secretKeyRef:
name: walias-secrets
key: WILDDUCK_URL
- name: WILDDUCK_TOKEN
valueFrom:
secretKeyRef:
name: walias-secrets
key: WILDDUCK_TOKEN
- name: WILDDUCK_DOMAIN
valueFrom:
secretKeyRef:
name: walias-secrets
key: WILDDUCK_DOMAIN
envFrom: envFrom:
- secretRef: - secretRef:
name: oidc-client-walias-owner-secrets name: oidc-client-walias-owner-secrets

View File

@ -58,7 +58,7 @@ export class AliasesService<ServiceParams extends AliasesParams = AliasesParams>
const aliasFirstPart = faker.animal.crocodilia() const aliasFirstPart = faker.animal.crocodilia()
.replace(/\D/, '') .replace(/\D/, '')
.replace(/\s/, '') .replace(/\s/, '')
.slice(10); .slice(0, 10);
const aliasSecondPart = faker.git.commitSha({ length: 5 }); const aliasSecondPart = faker.git.commitSha({ length: 5 });
const alias = `${aliasFirstPart}-${aliasSecondPart}@${config.get('wildDuck.domain')}`; const alias = `${aliasFirstPart}-${aliasSecondPart}@${config.get('wildDuck.domain')}`;