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

Updated CD.yml file to the newer version. #772

Merged
merged 28 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7c643fb
Moved application logic into the app directory
EPortman Jul 16, 2024
d612c49
Added basic configuration for Cypress
EPortman Jul 17, 2024
e02ae1e
Added basic cypress tests
EPortman Jul 17, 2024
1aebbf9
Changed build directory in dev-ops
EPortman Jul 17, 2024
b5277d3
Updated ci / cd
EPortman Jul 17, 2024
2a0f317
updated PR cloud build
EPortman Jul 17, 2024
8ff8755
Changed to pnpm
EPortman Jul 17, 2024
cf790be
installed pnpm
EPortman Jul 17, 2024
5e07298
installed pnpm
EPortman Jul 17, 2024
5cd8eda
Trial
EPortman Jul 17, 2024
ab49571
try
EPortman Jul 17, 2024
c9dec15
ANother
EPortman Jul 17, 2024
8fe137b
consolidate
EPortman Jul 17, 2024
e4e5177
another
EPortman Jul 17, 2024
f7c01d5
Updated cloud build step to use pnpm build
EPortman Jul 30, 2024
5b3ee8e
Removed entrypoint on step 3
EPortman Jul 30, 2024
7a1bdf1
Changed it to be 1 step only
EPortman Jul 30, 2024
fa3a6db
Updated single step to work with project
EPortman Jul 30, 2024
7548345
Missed one
EPortman Jul 30, 2024
1a5b237
Updated placement of devops directory
EPortman Aug 1, 2024
7e584d3
Updated version number
EPortman Aug 1, 2024
ce09fed
Added video
EPortman Aug 1, 2024
b8ada77
Updated directory structure
EPortman Aug 1, 2024
5afc541
updated git ignore
EPortman Aug 1, 2024
1c54de3
Made gitignore not ignore the valuts.env file
EPortman Aug 1, 2024
6a559e2
Changed cloudbuild file to be inline
EPortman Aug 1, 2024
df09e7e
Moved devops directory back to app folder
EPortman Aug 1, 2024
3b90c76
Updated CD file
EPortman Aug 1, 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
27 changes: 12 additions & 15 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,24 @@ on:
workflow_dispatch:
inputs:
environment:
description: "Environment"
description: 'Environment'
required: true
type: choice
options:
- dev
- test
- sandbox
- prod
tagname:
description: "Specify a previous version (git tag) to deploy"
required: false
default: ""
- dev
- test
- sandbox
- prod

jobs:
namerequest-ui-cd:
uses: bcgov/bcregistry-sre/.github/workflows/ui-cd-node20.yaml@main
uses: bcgov/bcregistry-sre/.github/workflows/frontend-cd.yaml@main
with:
environment: ${{ inputs.environment }}
tagname: ${{ inputs.tagname }}
target: ${{ inputs.environment }}
node_version: '20.5.1'
app_name: 'namerequest'
working_directory: 'app'
secrets:
APP_NAME: "namerequest"
OP_CONNECT_URL: ${{ secrets.OP_CONNECT_URL }}
OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }}
WORKLOAD_IDENTIFY_POOLS_PROVIDER: ${{ secrets.WORKLOAD_IDENTIFY_POOLS_PROVIDER }}
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}

8 changes: 7 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: E2E Smoke tests
uses: cypress-io/github-action@v6
id: smoke
continue-on-error: false
continue-on-error: true
with:
summary-title: 'E2E Smoke tests'
wait-on: ${{ secrets.CYPRESS_HOST }}
Expand All @@ -64,3 +64,9 @@ jobs:
with:
name: smoke-test-results
path: testing/mochawesome-report/report.html

- name: Upload Test Videos
uses: actions/upload-artifact@v4
with:
name: cypress-videos
path: testing/cypress/videos
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public/config/configuration.json
.firebase
*.firebaserc
*.log
!vaults.env

# Cypress related files
**/cypress.env.json
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.5.4",
"version": "5.5.5",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand Down
64 changes: 0 additions & 64 deletions devops/cloudbuild-pr.yaml

This file was deleted.