fixed vault and registry domain

This commit is contained in:
devops 2025-01-13 22:44:45 +03:00 committed by devops
parent 9c9d8ae599
commit 12089d0968
3 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ jobs:
- name: Import Secrets - name: Import Secrets
uses: hashicorp/vault-action@v2 uses: hashicorp/vault-action@v2
with: with:
url: https://vault.project-rent-dev.com url: https://vault.project-quest-dev.com
token: ${{ secrets.VAULT_TOKEN }} token: ${{ secrets.VAULT_TOKEN }}
secrets: | secrets: |
cicd/data/docker password | REGISTRY_PASSWORD ; cicd/data/docker password | REGISTRY_PASSWORD ;

View File

@ -9,7 +9,7 @@ on:
REGISTRY: REGISTRY:
required: true required: true
type: string type: string
default: registry.project-rent-dev.com default: registry.project-quest-dev.com
PROD_NAMESPACE: PROD_NAMESPACE:
required: true required: true
type: string type: string
@ -69,7 +69,7 @@ jobs:
- name: Export secrets for deploy - name: Export secrets for deploy
run: | run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then if [ "${{ github.ref }}" = "refs/heads/main" ]; then
echo "NAMESPACE=${{ inputs.PROD_NAMESPACE }}" >> $GITHUB_ENV echo "NAMESPACE=${{ inputs.PROD_NAMESPACE }}" >> $GITHUB_ENV
echo "VALUES_FILE=${{ inputs.PROD_VALUES_FILE }}" >> $GITHUB_ENV echo "VALUES_FILE=${{ inputs.PROD_VALUES_FILE }}" >> $GITHUB_ENV
echo "KUBECONF=${{ inputs.PROD_KUBECONF_SECRET_PATH }}" >> $GITHUB_ENV echo "KUBECONF=${{ inputs.PROD_KUBECONF_SECRET_PATH }}" >> $GITHUB_ENV
@ -82,7 +82,7 @@ jobs:
- name: Import config of k8s - name: Import config of k8s
uses: hashicorp/vault-action@v2 uses: hashicorp/vault-action@v2
with: with:
url: https://vault.project-rent-dev.com url: https://vault.project-quest-dev.com
token: ${{ secrets.VAULT_TOKEN }} token: ${{ secrets.VAULT_TOKEN }}
secrets: | secrets: |
${{ env.KUBECONF }} | KUBECONFIG; ${{ env.KUBECONF }} | KUBECONFIG;

View File

@ -33,7 +33,7 @@ jobs:
- name: Export secrets for prisma - name: Export secrets for prisma
run: | run: |
if [ "${{ github.ref }}" == "refs/heads/main" ]; then if [ "${{ github.ref }}" = "refs/heads/main" ]; then
echo "PRISMA_DB_SECRET_PATH=${{ inputs.PROD_PRISMA_SECRET_DB_PATH }}" >> $GITHUB_ENV echo "PRISMA_DB_SECRET_PATH=${{ inputs.PROD_PRISMA_SECRET_DB_PATH }}" >> $GITHUB_ENV
else else
echo "PRISMA_DB_SECRET_PATH=${{ inputs.DEV_PRISMA_SECRET_DB_PATH }}" >> $GITHUB_ENV echo "PRISMA_DB_SECRET_PATH=${{ inputs.DEV_PRISMA_SECRET_DB_PATH }}" >> $GITHUB_ENV
@ -42,7 +42,7 @@ jobs:
- name: Import prisma db url - name: Import prisma db url
uses: hashicorp/vault-action@v2 uses: hashicorp/vault-action@v2
with: with:
url: https://vault.project-rent-dev.com url: https://vault.project-quest-dev.com
token: ${{ secrets.VAULT_TOKEN }} token: ${{ secrets.VAULT_TOKEN }}
secrets: | secrets: |
${{ env.PRISMA_DB_SECRET_PATH }} | PRISMA_DB_URL; ${{ env.PRISMA_DB_SECRET_PATH }} | PRISMA_DB_URL;