Skip to content

Commit

Permalink
fix: env file formatting in cd yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
aseerkt committed Apr 23, 2024
1 parent 7994266 commit 3147e81
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
env:
ENV_FILE: ${{ secrets.APP_ENV_FILE }}
run: |
echo $ENV_FILE > app.env
echo "$ENV_FILE" > app.env
- name: Build, tag, and push docker image to Amazon ECR
env:
Expand Down
7 changes: 2 additions & 5 deletions infra/aws-k8s/ecr.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
resource "aws_ecr_repository" "this" {
name = local.name

image_tag_mutability = "IMMUTABLE"
force_delete = true

name = local.name
force_delete = true
tags = {
Name = "${local.name}/ECR"
}
Expand Down
6 changes: 3 additions & 3 deletions infra/aws-k8s/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ module "eks" {
eks_managed_node_groups = {
default_ng = {
# variables reference: https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/modules/eks-managed-node-group/variables.tf
min_size = 1
max_size = 4
desired_size = 2
min_size = 2
max_size = 10
desired_size = 4

disk_size = 20

Expand Down
12 changes: 12 additions & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
GIN_MODE=debug
DB_DRIVER=postgres
DB_USER=root
DB_PASSWORD=secret
DB_NAME=simple_bank
DB_PORT=5433

DB_URL="postgresql://root:secret@localhost:5433/simple_bank?sslmode=disable"
SERVER_ADDRESS=:8080
MIGRATE_URL=file://sql/migrations

CONSOLE=https://654654551000.signin.aws.amazon.com/console

0 comments on commit 3147e81

Please sign in to comment.