Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
5f470f8
docker layer caching
foot Nov 4, 2021
09796ea
Change the cluster-service to see what happens w/ cache
foot Nov 4, 2021
4e83a72
another change
foot Nov 4, 2021
6a21bec
try out parallel builds
foot Nov 4, 2021
0bc2f0f
new cache key
foot Nov 4, 2021
1fcdb6a
restore keys
foot Nov 4, 2021
deed408
Only push write image
foot Nov 4, 2021
e330165
fix image
foot Nov 4, 2021
01edd64
drop caching
foot Nov 4, 2021
39e49b5
Merge remote-tracking branch 'origin/main' into build-optimizations
foot Nov 4, 2021
c0651a0
split out ui-server
foot Nov 4, 2021
f488c7f
fixes ui-server
foot Nov 4, 2021
361016e
more tokens
foot Nov 4, 2021
36e4f54
gogo
foot Nov 4, 2021
d9f40a2
a change
foot Nov 4, 2021
3fac7c6
test has its own cache
foot Nov 4, 2021
fd6435d
a change
foot Nov 4, 2021
3f0a434
try re-use
foot Nov 8, 2021
f9f68fc
Merge remote-tracking branch 'origin/main' into build-optimizations
foot Nov 8, 2021
91f269e
gotta be top level
foot Nov 8, 2021
d1ed342
try head
foot Nov 8, 2021
7b825bb
try out uses w/ local ref
foot Nov 8, 2021
4d40999
local file ref
foot Nov 8, 2021
19efd69
use ref for now
foot Nov 8, 2021
cd7105c
no concurrency?
foot Nov 8, 2021
9cda177
pass secrets
foot Nov 8, 2021
249fcbc
req true
foot Nov 8, 2021
afa331a
Strip repeated env and supply helmrepo
foot Nov 8, 2021
1d6fbfd
hit save
foot Nov 8, 2021
d233271
speed up tests?
foot Nov 8, 2021
ee50df5
oops
foot Nov 8, 2021
ad93956
warmed caches
foot Nov 8, 2021
6ed0e9d
bad cache id
foot Nov 8, 2021
89e2578
warmed caches
foot Nov 8, 2021
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
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ jobs:
key: ${{ runner.os }}-${{ env.YARN_CACHE_NAME }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.YARN_CACHE_NAME }}-
# In this step, this action saves a list of existing images,
# the cache is created without them in the post run.
# It also restores the cache if it exists.
- uses: satackey/[email protected]
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true
- name: Build all the services
env:
GITHUB_BUILD_TOKEN: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions cmd/clusters-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ ENV CS_PATH=cmd/clusters-service

WORKDIR /workspace/$CS_PATH

# copy in other module dependencies
COPY common/ /workspace/common/
ENV GITHUB_BUILD_USERNAME=wge-build-bot
ARG GITHUB_BUILD_TOKEN
RUN git config --global url."https://${GITHUB_BUILD_USERNAME}:${GITHUB_BUILD_TOKEN}@github.com".insteadOf "https://github.com"

# copy modules manifests
COPY $CS_PATH/go.mod go.mod
COPY $CS_PATH/go.sum go.sum

ENV GITHUB_BUILD_USERNAME=wge-build-bot
ARG GITHUB_BUILD_TOKEN
RUN git config --global url."https://${GITHUB_BUILD_USERNAME}:${GITHUB_BUILD_TOKEN}@github.com".insteadOf "https://github.com"
# copy in other module dependencies
COPY common/ /workspace/common/

# cache modules
RUN go mod download
Expand Down
1 change: 1 addition & 0 deletions cmd/clusters-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (

func main() {
rand.Seed(time.Now().UnixNano())

tempDir, err := os.MkdirTemp("", "*")
if err != nil {
stdlog.Fatalf("Failed to create a temp directory for Helm: %v", err)
Expand Down