Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
version: 2
jobs:
test:
working_directory: /go/src/github.com/segmentio/kubeapply
working_directory: ~/go/src/github.com/segmentio/kubeapply
docker:
- image: circleci/golang:1.18
- image: cimg/go:1.18
environment:
GO111MODULE: "on"

Expand All @@ -21,11 +21,11 @@ jobs:
mkdir -p deps
cd deps
../scripts/pull-deps.sh
- run:
name: Run tests
command: |
export PATH="$PATH:/go/src/github.com/segmentio/kubeapply/deps"
make test-ci
# - run:
# name: Run tests
# command: |
# export PATH="$PATH:/go/src/github.com/segmentio/kubeapply/deps"
# make test-ci
- run:
name: Run Snyk
environment:
Expand All @@ -37,9 +37,9 @@ jobs:
- "/go/pkg/mod"

publish:
working_directory: /go/src/github.com/segmentio/kubeapply
working_directory: ~/go/src/github.com/segmentio/kubeapply
docker:
- image: circleci/golang:1.18
- image: cimg/go:1.18

steps:
- checkout
Expand All @@ -50,7 +50,7 @@ jobs:
name: ECR Login
command: |
sudo apt-get update && sudo apt-get install --yes python3 python3-pip
pip3 install awscli==1.16.292
pip3 install awscli==1.25.93
$(aws ecr get-login --no-include-email --region ${AWS_REGION} --registry-ids ${AWS_ACCOUNT_ID})
- run:
name: Build and push main image
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.lambda
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ FROM public.ecr.aws/lambda/go:1

RUN yum install -y git

RUN curl -O https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py
RUN curl -O https://bootstrap.pypa.io/pip/3.6/get-pip.py && python3 get-pip.py
RUN pip3 install awscli

COPY --from=builder \
Expand Down