Skip to content

Commit

Permalink
feature/PI-43-stored-properties secret stuff 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohoolio committed Oct 23, 2023
1 parent c6a7d85 commit 43e04d2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 19 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ env:
# SLACK_WEBHOOK_URL: ${{ secrets.DEPLOY_ENV_SLACK_HOOK_URL }}

jobs:
parse-secrets:
runs-on: [self-hosted, ci]
steps:
- id: parse-secrets
run: |
echo "::add-mask::${{ secrets.CI_ROLE_NAME }}"
echo "CI_ROLE_NAME=${{ secrets.CI_ROLE_NAME }}" >> $GITHUB_ENV
get-branch-from-workflow-file:
runs-on: [self-hosted, ci]
needs: [parse-secrets]
outputs:
branch_name: ${{ steps.get_branch.outputs.branch_name }}
steps:
Expand All @@ -53,7 +62,6 @@ jobs:

helpers--truststore-pull:
needs: [get-branch-from-workflow-file, build]
name: Terraform plan - ${{ inputs.workspace }})
runs-on: [self-hosted, ci]
steps:
- uses: actions/checkout@v3
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/deploy-parameters-nonprod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,8 @@ on:
- int

jobs:
parse-secrets:
runs-on: [self-hosted, ci]
steps:
- id: parse-secrets
run: |
echo "::add-mask::${{ secrets.CI_ROLE_NAME }}"
echo "CI_ROLE_NAME=${{ secrets.CI_ROLE_NAME }}" >> $GITHUB_ENV
deploy:
uses: ./.github/workflows/_deploy.yml
needs: [parse-secrets]
with:
workspace: ${{ inputs.workspace }}
parameter-deploy: "parameter_deploy"
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/deploy-parameters-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ on:
workflow_dispatch:

jobs:
parse-secrets:
runs-on: [self-hosted, ci]
steps:
- id: parse-secrets
run: |
echo "::add-mask::${{ secrets.CI_ROLE_NAME }}"
echo "CI_ROLE_NAME=${{ secrets.CI_ROLE_NAME }}" >> $GITHUB_ENV
deploy:
uses: ./.github/workflows/_deploy.yml
needs: [parse-secrets]
with:
workspace: prod
parameter-deploy: "parameter_deploy"
Expand Down

0 comments on commit 43e04d2

Please sign in to comment.