diff --git a/.github/actions/build-proxies/action.yml b/.github/actions/build-proxies/action.yml index 728edf4bc..1b3e6d278 100644 --- a/.github/actions/build-proxies/action.yml +++ b/.github/actions/build-proxies/action.yml @@ -13,10 +13,10 @@ inputs: required: false default: false environment: - description: "Deployment environment" + description: "Deployment environment (e.g. main, prNNN)" required: true apimEnv: - description: "APIM environment" + description: "APIM environment (e.g. internal-dev, int, ref, prod)" required: true runId: description: "GitHub Actions run ID to fetch the OAS artifact from" @@ -118,4 +118,5 @@ runs: --apimEnvironment "${{ env.APIM_ENV }}" \ --boundedContext "notify-supplier" \ --targetDomain "$TARGET_DOMAIN" \ - --version "${{ inputs.version }}" + --version "${{ inputs.version }}" \ + --internalRef "feature/CCM-15594" diff --git a/.github/actions/build-sandbox/action.yml b/.github/actions/build-sandbox/action.yml deleted file mode 100644 index dd4d947e8..000000000 --- a/.github/actions/build-sandbox/action.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: "Build Sandbox" -description: "Build Sandbox" -inputs: - version: - description: "Version number" - required: true - - NODE_AUTH_TOKEN: - description: "Token for access to github package registry" - required: true -runs: - using: composite - - steps: - - name: Checkout - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 - with: - node-version: 22 - registry-url: 'https://npm.pkg.github.com' - - - name: Npm install - working-directory: . - env: - NODE_AUTH_TOKEN: ${{ inputs.NODE_AUTH_TOKEN }} - run: npm ci - shell: bash - - - name: Install Proxygen client - shell: bash - run: | - # Install proxygen cli - pip install pipx - pipx install proxygen-cli - - # Setup proxygen auth and settings - mkdir -p ${HOME}/.proxygen - echo -n $PROXYGEN_PRIVATE_KEY | base64 --decode > ${HOME}/.proxygen/key - envsubst < ./.github/proxygen-credentials-template.yaml > ${HOME}/.proxygen/credentials.yaml - envsubst < ./.github/proxygen-credentials-template.yaml | cat - envsubst < ./.github/proxygen-settings.yaml > ${HOME}/.proxygen/settings.yaml - envsubst < ./.github/proxygen-settings.yaml | cat - - - name: Setup Sandbox tag - shell: bash - run: | - if [ -z $PR_NUMBER ] - then - echo "SANDBOX_TAG=latest" >> $GITHUB_ENV - else - echo "SANDBOX_TAG=pr$PR_NUMBER" >> $GITHUB_ENV - fi - - - name: Build and publish sandbox Docker image - shell: bash - working-directory: ./sandbox - run: | - proxygen docker get-login | bash - docker build -t nhs-notify-supplier:$SANDBOX_TAG . - DOCKER_REGISTRY=$(proxygen docker registry | tail -1) - IMAGE_ID=$(docker images -q nhs-notify-supplier:$SANDBOX_TAG) - docker tag $IMAGE_ID $DOCKER_REGISTRY/nhs-notify-supplier:$SANDBOX_TAG - docker push $DOCKER_REGISTRY/nhs-notify-supplier:$SANDBOX_TAG diff --git a/.github/proxygen-credentials-template.yaml b/.github/proxygen-credentials-template.yaml deleted file mode 100644 index e39465bf0..000000000 --- a/.github/proxygen-credentials-template.yaml +++ /dev/null @@ -1,4 +0,0 @@ -client_id: $PROXYGEN_CLIENT_ID -key_id: $PROXYGEN_KID -private_key_path: key -base_url: https://identity.prod.api.platform.nhs.uk/realms/api-producers diff --git a/.github/proxygen-settings.yaml b/.github/proxygen-settings.yaml deleted file mode 100644 index 8eb364c50..000000000 --- a/.github/proxygen-settings.yaml +++ /dev/null @@ -1,2 +0,0 @@ -endpoint_url: https://proxygen.prod.api.platform.nhs.uk -api: nhs-notify-supplier diff --git a/.github/workflows/deploy-supplier-api.yaml b/.github/workflows/deploy-supplier-api.yaml index c7d96d9eb..a01b7454f 100644 --- a/.github/workflows/deploy-supplier-api.yaml +++ b/.github/workflows/deploy-supplier-api.yaml @@ -214,7 +214,8 @@ jobs: --targetEnvironment "${{ needs.validate.outputs.target_environment }}" \ --targetAccountGroup "${{ needs.validate.outputs.target_account_group }}" \ --targetComponent "api" \ - --terraformAction "apply" + --terraformAction "apply" \ + --internalRef "feature/CCM-15594" deploy-proxy: name: Deploy proxy