Skip to content

Instantly share code, notes, and snippets.

@rluisr
Last active April 3, 2019 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rluisr/4b6d96c02ab9e4acc47bd57019e88493 to your computer and use it in GitHub Desktop.
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.
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