From d8276bab3bd25ecb1a039439497cae57fc2e3c40 Mon Sep 17 00:00:00 2001 From: Wellyson Freitas Date: Fri, 17 May 2024 16:09:07 +0200 Subject: [PATCH] Config param --- .github/workflows/build.yml | 2 +- .github/workflows/provision.yml | 2 +- Dockerfile | 2 +- docker-compose.yml | 2 +- pom.xml | 1 - src/main/resources/application.yml | 2 +- terraform/variables.tf | 2 +- 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 847cd32..8f15bd6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: - main jobs: - app: + build: runs-on: ubuntu-latest permissions: id-token: write diff --git a/.github/workflows/provision.yml b/.github/workflows/provision.yml index c8399c2..72e8ae5 100644 --- a/.github/workflows/provision.yml +++ b/.github/workflows/provision.yml @@ -18,7 +18,7 @@ on: workflow_dispatch: jobs: - provisioning: + provision: runs-on: ubuntu-latest defaults: run: diff --git a/Dockerfile b/Dockerfile index 210cb72..9eadd1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM maven:3.9.5-amazoncorretto-17 as maven +FROM maven:3.9.6-eclipse-temurin-17 as maven WORKDIR /usr/src/app diff --git a/docker-compose.yml b/docker-compose.yml index 179346f..27d1744 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,7 +23,7 @@ services: image: postgres:15.4 container_name: orders_db volumes: - - stock_db:/var/lib/postgresql/data + - orders_db:/var/lib/postgresql/data environment: - POSTGRES_DB=orders - POSTGRES_USER=selforder diff --git a/pom.xml b/pom.xml index aeab63c..6a4c497 100644 --- a/pom.xml +++ b/pom.xml @@ -398,5 +398,4 @@ - diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 3c1cd8d..e5d5cd5 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,6 @@ spring: application: - name: order-api + name: orders-api datasource: url: jdbc:postgresql://${DB_ENDPOINT}/${DB_NAME} username: ${DB_USERNAME} diff --git a/terraform/variables.tf b/terraform/variables.tf index 109e7c1..39424d8 100644 --- a/terraform/variables.tf +++ b/terraform/variables.tf @@ -1,5 +1,5 @@ variable "region" { - type = string + type = string default = "us-east-1" }