Browse Source

fix ci.

main
Gisle Aune 4 years ago
parent
commit
8896042991
  1. 4
      .drone.yml
  2. 6
      serverless.yml

4
.drone.yml

@ -26,7 +26,7 @@ steps:
commands: commands:
- go get -u github.com/pressly/goose/... - go get -u github.com/pressly/goose/...
- cd migrations/postgres - cd migrations/postgres
- goose postgres "$(DB_CONNECT)" up
- goose postgres '$DB_CONNECT' up
- name: backend-deploy - name: backend-deploy
image: node:14.14.0 image: node:14.14.0
@ -56,7 +56,7 @@ steps:
DB_DRIVER: DB_DRIVER:
from_secret: db_driver from_secret: db_driver
DB_CONNECT: DB_CONNECT:
from:secret: db_connect
from_secret: db_connect
commands: commands:
- apt-get update > /dev/null 2>&1 - apt-get update > /dev/null 2>&1
- apt-get -y install awscli zip > /dev/null 2>&1 - apt-get -y install awscli zip > /dev/null 2>&1

6
serverless.yml

@ -27,7 +27,11 @@ functions:
include: include:
- ./build/api/handler - ./build/api/handler
events: events:
- http: ANY /api/{proxy+}
- http:
method: ANY
path: /api/{proxy+}
authorizer:
arn: arn:aws:cognito-idp:eu-north-1:670816140020:userpool/eu-north-1_09uLRfo6H
timeout: 30 timeout: 30
package: package:

Loading…
Cancel
Save