Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
0f0e562127 | |||
af59783877 | |||
12089d0968 |
@ -27,18 +27,23 @@ jobs:
|
||||
image: catthehacker/ubuntu:act-22.04
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Import Secrets
|
||||
uses: hashicorp/vault-action@v2
|
||||
with:
|
||||
url: https://vault.project-rent-dev.com
|
||||
url: https://vault.project-quest-dev.com
|
||||
token: ${{ secrets.VAULT_TOKEN }}
|
||||
secrets: |
|
||||
cicd/data/docker password | REGISTRY_PASSWORD ;
|
||||
cicd/data/docker username | REGISTRY_USERNAME ;
|
||||
cicd/data/submodule token | SUBMODULE_TOKEN ;
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
token: ${{ env.SUBMODULE_TOKEN }}
|
||||
|
||||
- name: Set up Docker BuildX
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
@ -9,7 +9,7 @@ on:
|
||||
REGISTRY:
|
||||
required: true
|
||||
type: string
|
||||
default: registry.project-rent-dev.com
|
||||
default: registry.project-quest-dev.com
|
||||
PROD_NAMESPACE:
|
||||
required: true
|
||||
type: string
|
||||
@ -69,7 +69,7 @@ jobs:
|
||||
|
||||
- name: Export secrets for deploy
|
||||
run: |
|
||||
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
|
||||
if [ "${{ github.ref }}" = "refs/heads/main" ]; then
|
||||
echo "NAMESPACE=${{ inputs.PROD_NAMESPACE }}" >> $GITHUB_ENV
|
||||
echo "VALUES_FILE=${{ inputs.PROD_VALUES_FILE }}" >> $GITHUB_ENV
|
||||
echo "KUBECONF=${{ inputs.PROD_KUBECONF_SECRET_PATH }}" >> $GITHUB_ENV
|
||||
@ -82,7 +82,7 @@ jobs:
|
||||
- name: Import config of k8s
|
||||
uses: hashicorp/vault-action@v2
|
||||
with:
|
||||
url: https://vault.project-rent-dev.com
|
||||
url: https://vault.project-quest-dev.com
|
||||
token: ${{ secrets.VAULT_TOKEN }}
|
||||
secrets: |
|
||||
${{ env.KUBECONF }} | KUBECONFIG;
|
||||
|
@ -22,8 +22,20 @@ jobs:
|
||||
image: catthehacker/ubuntu:act-22.04
|
||||
steps:
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
- name: Import Common Secrets
|
||||
uses: hashicorp/vault-action@v2
|
||||
with:
|
||||
url: https://vault.project-quest-dev.com
|
||||
token: ${{ secrets.VAULT_TOKEN }}
|
||||
secrets: |
|
||||
cicd/data/submodule token | SUBMODULE_TOKEN ;
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
token: ${{ env.SUBMODULE_TOKEN }}
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
@ -33,7 +45,7 @@ jobs:
|
||||
|
||||
- name: Export secrets for prisma
|
||||
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
|
||||
else
|
||||
echo "PRISMA_DB_SECRET_PATH=${{ inputs.DEV_PRISMA_SECRET_DB_PATH }}" >> $GITHUB_ENV
|
||||
@ -42,7 +54,7 @@ jobs:
|
||||
- name: Import prisma db url
|
||||
uses: hashicorp/vault-action@v2
|
||||
with:
|
||||
url: https://vault.project-rent-dev.com
|
||||
url: https://vault.project-quest-dev.com
|
||||
token: ${{ secrets.VAULT_TOKEN }}
|
||||
secrets: |
|
||||
${{ env.PRISMA_DB_SECRET_PATH }} | PRISMA_DB_URL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user