Last active
April 3, 2019 08:19
-
-
Save rluisr/4b6d96c02ab9e4acc47bd57019e88493 to your computer and use it in GitHub Desktop.
Config file of CircleCI for deploying Lambda function and associate it with CloudFront.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: golang:alpine | |
environment: | |
GO111MODULE: "on" | |
steps: | |
- checkout | |
- run: | |
command: | | |
apk update | |
apk add --no-cache --virtual .build-deps | |
apk add bash | |
apk add make && apk add curl && apk add openssh | |
apk add git nodejs yarn jq | |
ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime | |
apk -Uuv add groff less python py-pip | |
pip install awscli | |
apk --purge -v del py-pip | |
cd /go/src | |
wget https://github.com/apex/apex/archive/master.zip | |
unzip master.zip | |
cd apex-master | |
go install ./... | |
cd ~/project | |
apex deploy noindex | |
bash update_cf.sh | |
workflows: | |
version: 2 | |
build_and_test: | |
jobs: | |
- build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment