Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #200 from triggermesh/build-optimizations
Browse files Browse the repository at this point in the history
go 1.15 update, build speed improvements
  • Loading branch information
Sameer Naik authored Sep 10, 2020
2 parents 7eeccd9 + 2e98a78 commit 84f1968
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
checkout:
executor:
name: go/default
tag: '1.14'
tag: '1.15'
steps:
- checkout
- go/mod-download-cached
Expand All @@ -21,7 +21,7 @@ jobs:
build:
executor:
name: go/default
tag: '1.14'
tag: '1.15'
steps:
- attach_workspace:
at: ~/
Expand All @@ -38,7 +38,7 @@ jobs:
test:
executor:
name: go/default
tag: '1.14'
tag: '1.15'
steps:
- attach_workspace:
at: ~/
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
release:
executor:
name: go/default
tag: '1.14'
tag: '1.15'
steps:
- attach_workspace:
at: ~/
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.14 AS build
FROM golang:1.15 AS build

ENV CGO_ENABLED=0
ENV GOOS=linux
Expand All @@ -13,7 +13,9 @@ ARG GIT_TAG
ENV GIT_TAG=${GIT_TAG:-unknown}

COPY . .
RUN make install
RUN make install && \
rm -rf ${GOPATH}/src && \
rm -rf ${HOME}/.cache

FROM debian:stable-slim

Expand Down
2 changes: 2 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ steps:
- --build-arg=GIT_TAG=${TAG_NAME}
- --no-push=${_KANIKO_NO_PUSH}
- --cache=${_KANIKO_USE_BUILD_CACHE}
- --snapshotMode=redo
- --use-new-run
- ${_KANIKO_EXTRA_ARGS}
waitFor: ['-']

Expand Down

0 comments on commit 84f1968

Please sign in to comment.