Skip to content

Commit

Permalink
Authenticate to Redgate
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Nov 13, 2024
1 parent 698f59f commit 34f69a9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ inputs:
SQL_PASSWORD:
description: 'Password for SQL_USER'
required: false
REDGATE_EMAIL:
description: 'Redgate authentication email'
required: true
REDGATE_PAT:
description: 'Redgate authentication Personal Access Token'
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -326,6 +332,8 @@ runs:
BUILD_VERSION: ${{env.BUILD_VERSION}}
BUILD_SQL: ${{steps.check_files.outputs.SQL_EXIST}}
DB_FOLDER: ${{github.workspace}}/db
REDGATE_EMAIL: ${{inputs.REDGATE_EMAIL}}
REDGATE_PAT: ${{inputs.REDGATE_EMAIL}}
NUGET_PACK: ${{inputs.NUGET_PACK}}
NUGET_FEED: ${{inputs.NUGET_FEED}}
NUGET_SYMBOL_FEED: ${{inputs.NUGET_SYMBOL_FEED}}
Expand Down Expand Up @@ -410,6 +418,8 @@ runs:
SQL_USER: ${{inputs.SQL_USER}}
SQL_PASSWORD: ${{inputs.SQL_PASSWORD}}
DB_FOLDER: ${{github.workspace}}/db
REDGATE_EMAIL: ${{inputs.REDGATE_EMAIL}}
REDGATE_PAT: ${{inputs.REDGATE_EMAIL}}

- name: "Dotnet: Cloudformation Deploy"
if: |-
Expand Down
8 changes: 8 additions & 0 deletions .github/actions/dotnet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ inputs:
DB_FOLDER:
description: 'Folder where SQL Files live'
required: false
REDGATE_EMAIL:
description: 'Redgate authentication email'
required: true
REDGATE_PAT:
description: 'Redgate authentication Personal Access Token'
required: true

# GENERAL
GITHUB_TOKEN:
Expand Down Expand Up @@ -148,6 +154,8 @@ runs:
with:
BUILD_VERSION: ${{inputs.BUILD_VERSION}}
DB_FOLDER: ${{inputs.DB_FOLDER}}
REDGATE_EMAIL: ${{inputs.REDGATE_EMAIL}}
REDGATE_PAT: ${{inputs.REDGATE_EMAIL}}

############################################################################################################
# Publish ready for deploy
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-and-publish-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
SQL_DB: ${{vars.SQL_DB}}
SQL_USER: ${{vars.SQL_USER}}
SQL_PASSWORD: ${{secrets.SQL_PASSWORD}}
REDGATE_EMAIL: ${{secrets.REDGATE_EMAIL}}
REDGATE_PAT: ${{secrets.REDGATE_PAT}}
CREATE_RELEASE: false

- name: "Build and deploy"
Expand Down Expand Up @@ -149,6 +151,8 @@ jobs:
SQL_DB: ${{vars.SQL_DB}}
SQL_USER: ${{vars.SQL_USER}}
SQL_PASSWORD: ${{secrets.SQL_PASSWORD}}
REDGATE_EMAIL: ${{secrets.REDGATE_EMAIL}}
REDGATE_PAT: ${{secrets.REDGATE_PAT}}
CREATE_RELEASE: false

- name: "Build Version"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-and-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
SQL_DB: ${{vars.SQL_DB}}
SQL_USER: ${{vars.SQL_USER}}
SQL_PASSWORD: ${{secrets.SQL_PASSWORD}}
REDGATE_EMAIL: ${{secrets.REDGATE_EMAIL}}
REDGATE_PAT: ${{secrets.REDGATE_PAT}}
CREATE_RELEASE: true

- name: "Build and deploy"
Expand Down Expand Up @@ -140,6 +142,8 @@ jobs:
SQL_DB: ${{vars.SQL_DB}}
SQL_USER: ${{vars.SQL_USER}}
SQL_PASSWORD: ${{secrets.SQL_PASSWORD}}
REDGATE_EMAIL: ${{secrets.REDGATE_EMAIL}}
REDGATE_PAT: ${{secrets.REDGATE_PAT}}
CREATE_RELEASE: true

- name: "Build Version"
Expand Down

0 comments on commit 34f69a9

Please sign in to comment.