From 34f69a97f6419b5ab6b6227b4c7507bcaa00b940 Mon Sep 17 00:00:00 2001 From: Mark Ridgwell Date: Mon, 11 Nov 2024 14:40:38 +0000 Subject: [PATCH] Authenticate to Redgate --- .github/actions/build/action.yml | 10 ++++++++++ .github/actions/dotnet/action.yml | 8 ++++++++ .github/workflows/build-and-publish-pre-release.yml | 4 ++++ .github/workflows/build-and-publish-release.yml | 4 ++++ 4 files changed, 26 insertions(+) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index c8fc0cb6..116508b7 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -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" @@ -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}} @@ -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: |- diff --git a/.github/actions/dotnet/action.yml b/.github/actions/dotnet/action.yml index 9812cfd8..efa4d345 100644 --- a/.github/actions/dotnet/action.yml +++ b/.github/actions/dotnet/action.yml @@ -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: @@ -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 diff --git a/.github/workflows/build-and-publish-pre-release.yml b/.github/workflows/build-and-publish-pre-release.yml index a3d19344..46a777ae 100644 --- a/.github/workflows/build-and-publish-pre-release.yml +++ b/.github/workflows/build-and-publish-pre-release.yml @@ -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" @@ -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" diff --git a/.github/workflows/build-and-publish-release.yml b/.github/workflows/build-and-publish-release.yml index f751baed..a9bae4c2 100644 --- a/.github/workflows/build-and-publish-release.yml +++ b/.github/workflows/build-and-publish-release.yml @@ -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" @@ -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"