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

6
serverless.yml

@ -27,7 +27,11 @@ functions:
include:
- ./build/api/handler
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
package:

Loading…
Cancel
Save