Skip to content

Commit 5a88ffd

Browse files
committed
merge from master
2 parents 8e1f890 + 9888ebb commit 5a88ffd

File tree

15 files changed

+53
-50
lines changed

15 files changed

+53
-50
lines changed
603 Bytes
Binary file not shown.
Binary file not shown.

.github/pull_request_template.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
## Description
2+
3+
Add a description of the: feature, bug fix,code change that improves performance, that affect the build system or external dependencies, on documentation, refactor or test.
4+
5+
## Files changed
6+
7+
- Add a list of files that have been changed
8+
9+
## Task board
10+
11+
- [Ticket name](Ticket url)
12+
13+
## Acceptance criteria
14+
15+
Add the acceptance criteria for this task.

.github/workflows/time-tracker-ui-cd-prod.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
ARM_CLIENT_SECRET: ${{secrets.TF_ARM_CLIENT_SECRET}}
1414
ARM_SUBSCRIPTION_ID: ${{secrets.TF_ARM_SUBSCRIPTION_ID}}
1515
ARM_TENANT_ID: ${{secrets.TF_ARM_TENANT_ID}}
16-
16+
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
17+
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
18+
1719
steps:
1820
- name: Checkout
1921
uses: actions/checkout@v3

.github/workflows/time-tracker-ui-cd-stage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
ARM_CLIENT_SECRET: ${{secrets.TF_ARM_CLIENT_SECRET}}
1414
ARM_SUBSCRIPTION_ID: ${{secrets.TF_ARM_SUBSCRIPTION_ID}}
1515
ARM_TENANT_ID: ${{secrets.TF_ARM_TENANT_ID}}
16+
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
17+
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
1618

1719
steps:
1820
- name: Checkout

.github/workflows/time-tracker-ui-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
ARM_CLIENT_SECRET: ${{secrets.TF_ARM_CLIENT_SECRET}}
1919
ARM_SUBSCRIPTION_ID: ${{secrets.TF_ARM_SUBSCRIPTION_ID}}
2020
ARM_TENANT_ID: ${{secrets.TF_ARM_TENANT_ID}}
21+
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
22+
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}}
23+
2124
strategy:
2225
max-parallel: 5
2326
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ Stryker is also executed on GitHub actions with the following cron expresion:
181181

182182
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
183183

184-
## Deploy the app on Azure
184+
## Deploy the app on Azure (deprecated)
185185

186186
The app deployment is automatically executed after each pull request is merged in master. That's wht it is necessary that each pull request meets at least 80% of test coverage.
187187

infrastructure/main.tf

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,22 @@ terraform {
55
source = "hashicorp/azurerm"
66
version = "~> 2.90"
77
}
8+
aws = {
9+
source = "hashicorp/aws"
10+
version = "~> 4.9.0"
11+
}
812
}
913

10-
backend "azurerm" {
11-
resource_group_name = "ioet-infra-tf-state"
12-
storage_account_name = "timetrackertfstate"
13-
container_name = "time-tracker-tf-state"
14-
key = "time-tracker-ui.tfstate"
14+
backend "s3" {
15+
bucket = "time-tracker-service"
16+
key = "ioet-time-tracker-ui/terraform.tfstate"
17+
region = "us-east-1"
18+
encrypt = true
1519
}
20+
}
1621

22+
provider "aws" {
23+
region = "us-east-1"
1724
}
1825

1926
provider "azurerm" {
@@ -22,13 +29,11 @@ provider "azurerm" {
2229
}
2330

2431
data "terraform_remote_state" "service" {
25-
backend = "azurerm"
26-
workspace = terraform.workspace
32+
backend = "s3"
2733
config = {
28-
resource_group_name = "ioet-infra-tf-state"
29-
storage_account_name = "timetrackertfstate"
30-
container_name = "time-tracker-tf-state"
31-
key = "this.tfstate"
34+
bucket = "time-tracker-service"
35+
key = "env://${local.environment}/time-tracker-service/terraform.tfstate"
36+
region = "us-east-1"
3237
}
3338
}
3439

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "time-tracker",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"scripts": {
55
"preinstall": "npx npm-force-resolutions",
66
"ng": "ng",

0 commit comments

Comments
 (0)