Skip to content

Commit 6300324

Browse files
authored
Merge pull request #75 from silinternational/develop
Release 2.3.2 -- increase log retention
2 parents 4993ce1 + 8b476f6 commit 6300324

File tree

9 files changed

+43
-23
lines changed

9 files changed

+43
-23
lines changed

.github/workflows/test-deploy-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test, Deploy, Publish
22

33
on:
44
push:
5+
branches: ["**"]
6+
paths-ignore:
7+
- 'terraform/**'
58

69
jobs:
710
tests:
@@ -17,7 +20,7 @@ jobs:
1720
- name: Checkout code
1821
uses: actions/checkout@v4
1922
- name: Test
20-
run: docker-compose -f actions-services.yml run --rm test ./scripts/test.sh
23+
run: docker compose -f actions-services.yml run --rm test ./scripts/test.sh
2124

2225
deploy:
2326
name: Deploy to AWS Lambda
@@ -41,7 +44,7 @@ jobs:
4144
- name: Checkout code
4245
uses: actions/checkout@v4
4346
- name: Deploy
44-
run: docker-compose -f actions-services.yml run --rm app ./scripts/deploy.sh
47+
run: docker compose -f actions-services.yml run --rm app ./scripts/deploy.sh
4548

4649
build-and-publish:
4750
name: Build and Publish

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
FROM golang:1.18
22

3-
RUN curl -o- -L https://slss.io/install | VERSION=3.7.5 bash && \
3+
RUN curl -o- -L --proto "=https" https://slss.io/install | VERSION=3.7.5 bash && \
44
mv $HOME/.serverless/bin/serverless /usr/local/bin && \
55
ln -s /usr/local/bin/serverless /usr/local/bin/sls
66

77
WORKDIR /src
88

9-
RUN curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
9+
RUN curl -sSfL --proto "=https" https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | \
10+
sh -s -- -b $(go env GOPATH)/bin
1011

1112
COPY ./ .
1213
RUN go get ./...
1314

1415
EXPOSE 8080
1516

16-
CMD ["air"]
17+
CMD ["air"]

Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ demo: proxy ui app dbinit
22
./local_data.sh
33

44
proxy:
5-
docker-compose up -d proxy
5+
docker compose up -d proxy
66

77
ui:
8-
docker-compose up -d ui
8+
docker compose up -d ui
99

1010
app:
11-
docker-compose kill app
12-
docker-compose rm -f app
13-
docker-compose up -d app
11+
docker compose kill app
12+
docker compose rm -f app
13+
docker compose up -d app
1414

1515
test: clean dbinit
16-
docker-compose run --rm app go test ./...
16+
docker compose run --rm app go test ./...
1717

1818
db:
19-
docker-compose up -d dynamo
19+
docker compose up -d dynamo
2020

2121
dbinit: db wait createwebauthntable createapikeytable
2222

@@ -55,5 +55,5 @@ showwebauth:
5555
--region localhost
5656

5757
clean:
58-
docker-compose kill
59-
docker-compose rm -f
58+
docker compose kill
59+
docker compose rm -f

actions-services.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3"
2-
31
services:
42
test:
53
build: .

aws.env.encrypted

Lines changed: 0 additions & 2 deletions
This file was deleted.

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
version: "3.7"
2-
31
services:
42
proxy:
53
image: silintl/traefik-https-proxy

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ provider:
77
runtime: provided.al2
88
timeout: 5 # API Gateway invoked functions are limited to 30 seconds
99
versionFunctions: false
10-
logRetentionInDays: 14
10+
logRetentionInDays: 60
1111
apiGateway:
1212
shouldStartNameWithService: true
1313

terraform/.terraform.lock.hcl

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terraform/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ locals {
99
*/
1010
module "serverless-user" {
1111
source = "silinternational/serverless-user/aws"
12-
version = "0.3.2"
12+
version = "0.4.2"
1313

1414
app_name = "${var.app_name}-${var.app_env}"
15-
aws_region = var.aws_region
1615
aws_region_policy = "*"
1716
enable_api_gateway = true
1817
extra_policies = var.extra_policies

0 commit comments

Comments
 (0)