Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve 401 error #366

Merged
merged 31 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f0d17df
Add missing credentials for npm build
vivid-cpreston Dec 9, 2024
50c9efb
Correct ordering of actions
vivid-cpreston Dec 9, 2024
059e99d
Update client-build.yml
vivid-cpreston Dec 9, 2024
33da7dc
Add permissions needed for standalone execution
vivid-cpreston Dec 9, 2024
cc90c5f
Update credential setting
vivid-cpreston Dec 9, 2024
b0c5ae6
Add missing credentials for npm build
vivid-cpreston Dec 9, 2024
8214bcf
Correct ordering of actions
vivid-cpreston Dec 9, 2024
6b3ed94
Update client-build.yml
vivid-cpreston Dec 9, 2024
17c7d0b
Add permissions needed for standalone execution
vivid-cpreston Dec 9, 2024
ee2fc09
Update credential setting
vivid-cpreston Dec 9, 2024
b9e8a52
Merge branch 'resolve-401-error' of https://github.com/bcgov/nr-bcws-…
vivid-cpreston Dec 10, 2024
12db96d
Remove unused steps, change authentication
vivid-cpreston Dec 10, 2024
eefa041
Remove npmrc credentials
vivid-cpreston Dec 10, 2024
ae4a8d5
Remove package-lock.json to test build process
vivid-cpreston Dec 10, 2024
eb499e9
Fix token validation test (#362)
ssylver93 Dec 10, 2024
716a08c
WFPREV-145 - Adding Program Area to Code Tables (/codes) (#355)
agordon-vivid Dec 11, 2024
903e3ca
Add app_config_location to environment.prod.ts (#364)
ssylver93 Dec 11, 2024
c921f12
Add missing credentials for npm build
vivid-cpreston Dec 9, 2024
d3e9227
Correct ordering of actions
vivid-cpreston Dec 9, 2024
e7cc997
Update client-build.yml
vivid-cpreston Dec 9, 2024
052fc99
Add permissions needed for standalone execution
vivid-cpreston Dec 9, 2024
132252d
Update credential setting
vivid-cpreston Dec 9, 2024
77e3ac9
Add missing credentials for npm build
vivid-cpreston Dec 9, 2024
4d7537b
Correct ordering of actions
vivid-cpreston Dec 9, 2024
93c0f31
Update client-build.yml
vivid-cpreston Dec 9, 2024
f628d3c
Add permissions needed for standalone execution
vivid-cpreston Dec 9, 2024
926afea
Update credential setting
vivid-cpreston Dec 9, 2024
fb11591
Remove unused steps, change authentication
vivid-cpreston Dec 10, 2024
e7150f3
Remove npmrc credentials
vivid-cpreston Dec 10, 2024
71dcb17
Remove package-lock.json to test build process
vivid-cpreston Dec 10, 2024
68dfab1
Merge branch 'resolve-401-error' of https://github.com/bcgov/nr-bcws-…
vivid-cpreston Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 10 additions & 45 deletions .github/workflows/client-build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
name: Deploy Angular App to S3 and CloudFront

permissions:
contents: read
id-token: write

on:
workflow_call:
inputs:
DEFAULT_APPLICATION_ENVIRONMENT:
required: true
type: string
IMAGE_TAG:
required: true
type: string
workflow_dispatch:
inputs:
TAG:
DEFAULT_APPLICATION_ENVIRONMENT:
required: true
type: string
description: Additional tag to add to built images
default: dev

env:
TF_VERSION: 1.8.5
Expand Down Expand Up @@ -52,6 +54,9 @@ jobs:
with:
node-version: '20'

- name: Clear npm credentials
run: rm -fv ~/.npmrc

- name: Install dependencies for Angular project
run: |
cd client/wfprev-war/src/main/angular
Expand All @@ -68,46 +73,6 @@ jobs:
env:
TFC_PROJECT: ${{ env.TFC_PROJECT }}
TARGET_ENV: ${{ env.TARGET_ENV }}
APP_COUNT: 1
LOGGING_LEVEL: ${{vars.LOGGING_LEVEL}}

# Necessary for WFPREV API
WFPREV_API_NAME: wfprev-api
WFPREV_API_IMAGE: ${{ steps.getDigestAPI.outputs.IMAGE_API_BY_DIGEST }}
WFPREV_API_CPU_UNITS: ${{vars.WFPREV_API_CPU_UNITS}}
WFPREV_API_MEMORY: 1024
WFPREV_API_PORT: 8080
TARGET_AWS_ACCOUNT_ID: ${{secrets.TARGET_AWS_ACCOUNT_ID}}
WFPREV_CLIENT_ID: ${{vars.WFPREV_CLIENT_ID}}
WFPREV_CLIENT_SECRET: ${{secrets.WFPREV_CLIENT_SECRET}}
WEBADE_OAUTH2_CHECK_TOKEN_URL: ${{vars.WEBADE_OAUTH2_CHECK_TOKEN_URL}}
WEBADE_OAUTH2_CHECK_AUTHORIZE_URL: ${{vars.WEBADE_OAUTH2_CHECK_AUTHORIZE_URL}}
WFPREV_BASE_URL: ${{vars.WFPREV_BASE_URL}}
WFPREV_DATASOURCE_URL: ${{vars.WFPREV_DATASOURCE_URL}}
WFPREV_DATASOURCE_USERNAME: ${{secrets.WFPREV_USERNAME}}
WFPREV_DATASOURCE_PASSWORD: ${{secrets.DB_PASS}}
server_count: ${{vars.WFPREV_SERVER_INSTANCE_COUNT}}
# WFPREV UI
CLIENT_IMAGE: ${{ steps.getDigestUI.outputs.IMAGE_UI_BY_DIGEST }}
WEBADE_OAUTH2_WFPREV_UI_CLIENT_SECRET: ${{ secrets.WEBADE_OAUTH2_WFPREV_UI_CLIENT_SECRET }}
WFPREV_CHECK_TOKEN_URL: ${{vars.WFPREV_CHECK_TOKEN_URL}}

# DB
WFPREV_USERNAME: ${{secrets.WFPREV_USERNAME}}
DB_PASS: ${{secrets.DB_PASS}}
DB_INSTANCE_TYPE: ${{vars.DB_INSTANCE_TYPE}}

#liquibase
COMMAND: ${{ steps.liquibaseCommand.outputs.LIQUIBASE_COMMAND }}
PROXY_COUNT: 1
NONPROXY_COUNT: 1
CHANGELOG_NAME: ${{ inputs.CHANGELOG_NAME }}
LIQUIBASE_IMAGE: ${{vars.REPOSITORY_HOST}}/${{ github.repository_owner }}/${{ vars.LIQUIBASE_IMAGE }}:${{ inputs.IMAGE_TAG }}
LIQUIBASE_COMMAND_USERNAME: ${{ vars.LIQUIBASE_COMMAND_USERNAME }}
LIQUIBASE_COMMAND_PASSWORD: ${{ secrets.LIQUIBASE_COMMAND_PASSWORD }}
SCHEMA_NAME: ${{ inputs.SCHEMA_NAME }}
TARGET_LIQUIBASE_TAG: ${{ steps.liquibaseCommand.outputs.TARGET_LIQUIBASE_TAG }}

run: |
# Debug current directory and files
pwd
Expand Down
Loading
Loading