1501 lines
73 KiB
YAML
1501 lines
73 KiB
YAML
version: "2.1"
|
|
executors:
|
|
builder:
|
|
docker:
|
|
- image: docker.mirror.hashicorp.services/circleci/buildpack-deps
|
|
shell: /usr/bin/env bash -euo pipefail -c
|
|
environment:
|
|
AUTO_INSTALL_TOOLS: "YES"
|
|
BUILDKIT_PROGRESS: plain
|
|
PRODUCT_REVISION: ""
|
|
builder-machine:
|
|
resource_class: xlarge
|
|
machine:
|
|
image: ubuntu-1604:202007-01
|
|
shell: /usr/bin/env bash -euo pipefail -c
|
|
environment:
|
|
AUTO_INSTALL_TOOLS: "YES"
|
|
BUILDKIT_PROGRESS: plain
|
|
PRODUCT_REVISION: ""
|
|
jobs:
|
|
build-common-layers:
|
|
executor: builder-machine
|
|
steps:
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
keys:
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Layer Cache: build-ui'
|
|
- run:
|
|
command: LAYER_SPEC_ID=06-build-ui-993e50cbb3d37120b1391442177827b615c77f82 make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 00-base-c6cdf1b224722d2520e082320f2a71875913247c-image
|
|
name: Build base layer
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 01-install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b-image
|
|
name: Build install-go layer
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 02-install-go-tools-a10e38af920222100809a5d52ac413e922688b48-image
|
|
name: Build install-go-tools layer
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 03-set-workdir-577aad3893a929a48a2ce7319179c253507dee67-image
|
|
name: Build set-workdir layer
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 04-install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea-image
|
|
name: Build install-yarn layer
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 05-ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9-image
|
|
name: Build ui-dependencies layer
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 06-build-ui-993e50cbb3d37120b1391442177827b615c77f82-image
|
|
name: Build build-ui layer
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -f packages*.lock/layer.mk 06-build-ui-993e50cbb3d37120b1391442177827b615c77f82-save
|
|
name: Build build-ui layer
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/archives/06-build-ui-993e50cbb3d37120b1391442177827b615c77f82.tar.gz
|
|
key: build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
name: 'Save Layer Cache: build-ui'
|
|
bundle-releases:
|
|
executor: builder
|
|
steps:
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-all-package-cache-keys
|
|
name: Write all package cache keys
|
|
- run:
|
|
command: mkdir -p .buildcache && echo "*" > .buildcache/.gitignore
|
|
name: Ignore .buildcache
|
|
- restore_cache:
|
|
key: package-cbdbdba3a25dc848c96b3600c11eff858392b7b1-{{checksum ".buildcache/cache-keys/package-cbdbdba3a25dc848c96b3600c11eff858392b7b1"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-97a54b601b4f8e95e365b6cbfb7ced2db20a19fb-{{checksum ".buildcache/cache-keys/package-97a54b601b4f8e95e365b6cbfb7ced2db20a19fb"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-0724dc55f36e7d43ff29c7712c868c97495e1093-{{checksum ".buildcache/cache-keys/package-0724dc55f36e7d43ff29c7712c868c97495e1093"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-e122689bb55526380febb96bcc7c5ed0c7021081-{{checksum ".buildcache/cache-keys/package-e122689bb55526380febb96bcc7c5ed0c7021081"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-0c7d3b4fa62fb66af4335e5b31ff32135b068cde-{{checksum ".buildcache/cache-keys/package-0c7d3b4fa62fb66af4335e5b31ff32135b068cde"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-663ada3c310fe0213beb7beec5075b14be941146-{{checksum ".buildcache/cache-keys/package-663ada3c310fe0213beb7beec5075b14be941146"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-6fb96028f986443216f0effef7298278d0a5b49b-{{checksum ".buildcache/cache-keys/package-6fb96028f986443216f0effef7298278d0a5b49b"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-87b442d50b8181e857d331b135def69f9e986436-{{checksum ".buildcache/cache-keys/package-87b442d50b8181e857d331b135def69f9e986436"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-1b6384f03339995616fcd7fff044b50358d52694-{{checksum ".buildcache/cache-keys/package-1b6384f03339995616fcd7fff044b50358d52694"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-b299198f3749dd27089ac5a59703ef105a045ee6-{{checksum ".buildcache/cache-keys/package-b299198f3749dd27089ac5a59703ef105a045ee6"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-7e08466f11deaa40bc94299b075d9f2178303acf-{{checksum ".buildcache/cache-keys/package-7e08466f11deaa40bc94299b075d9f2178303acf"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-692f4c2f96349682f049fd1eea4e3bea3e3545f0-{{checksum ".buildcache/cache-keys/package-692f4c2f96349682f049fd1eea4e3bea3e3545f0"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-51d3a9bf7b5c4b0efa7c2574421cc6b617d282e0-{{checksum ".buildcache/cache-keys/package-51d3a9bf7b5c4b0efa7c2574421cc6b617d282e0"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-f3b2fbba2d9d742d16973127870565295b26242f-{{checksum ".buildcache/cache-keys/package-f3b2fbba2d9d742d16973127870565295b26242f"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-ec5997e8f66fa265c5f093975e6da56fbaffd801-{{checksum ".buildcache/cache-keys/package-ec5997e8f66fa265c5f093975e6da56fbaffd801"}}
|
|
name: Restore package cache
|
|
- restore_cache:
|
|
key: package-abcc2f1feaa4aa4bf7ee90971cb41812c895970f-{{checksum ".buildcache/cache-keys/package-abcc2f1feaa4aa4bf7ee90971cb41812c895970f"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: make package-meta-all
|
|
name: Write Package Metadata
|
|
- run:
|
|
command: make aliases
|
|
name: Write package aliases
|
|
- run:
|
|
command: ls -lahR .buildcache
|
|
name: List Build Cache
|
|
- run:
|
|
command: cp packages*.lock/pkgs.yml lockfile-c92e36137d5c5886.yml
|
|
name: Update Lockfile Name
|
|
- run:
|
|
command: tar -czf packages-c92e36137d5c5886.tar.gz .buildcache/packages lockfile-c92e36137d5c5886.yml
|
|
name: Create Raw Package Tarball
|
|
- run:
|
|
command: tar -czf meta-c92e36137d5c5886.tar.gz .buildcache/packages/store/*.json lockfile-c92e36137d5c5886.yml
|
|
name: Create Metadata Tarball
|
|
- store_artifacts:
|
|
path: lockfile-c92e36137d5c5886.yml
|
|
- store_artifacts:
|
|
path: packages-c92e36137d5c5886.tar.gz
|
|
- store_artifacts:
|
|
path: meta-c92e36137d5c5886.tar.gz
|
|
- store_artifacts:
|
|
path: .buildcache/packages
|
|
darwin_amd64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-cbdbdba3a25dc848c96b3600c11eff858392b7b1-{{checksum ".buildcache/cache-keys/package-cbdbdba3a25dc848c96b3600c11eff858392b7b1"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-cbdbdba3a25dc848c96b3600c11eff858392b7b1-{{checksum ".buildcache/cache-keys/package-cbdbdba3a25dc848c96b3600c11eff858392b7b1"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: cbdbdba3a25dc848c96b3600c11eff858392b7b1
|
|
darwin_arm64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-97a54b601b4f8e95e365b6cbfb7ced2db20a19fb-{{checksum ".buildcache/cache-keys/package-97a54b601b4f8e95e365b6cbfb7ced2db20a19fb"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-97a54b601b4f8e95e365b6cbfb7ced2db20a19fb-{{checksum ".buildcache/cache-keys/package-97a54b601b4f8e95e365b6cbfb7ced2db20a19fb"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 97a54b601b4f8e95e365b6cbfb7ced2db20a19fb
|
|
freebsd_386_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-0724dc55f36e7d43ff29c7712c868c97495e1093-{{checksum ".buildcache/cache-keys/package-0724dc55f36e7d43ff29c7712c868c97495e1093"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-0724dc55f36e7d43ff29c7712c868c97495e1093-{{checksum ".buildcache/cache-keys/package-0724dc55f36e7d43ff29c7712c868c97495e1093"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 0724dc55f36e7d43ff29c7712c868c97495e1093
|
|
freebsd_amd64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-e122689bb55526380febb96bcc7c5ed0c7021081-{{checksum ".buildcache/cache-keys/package-e122689bb55526380febb96bcc7c5ed0c7021081"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-e122689bb55526380febb96bcc7c5ed0c7021081-{{checksum ".buildcache/cache-keys/package-e122689bb55526380febb96bcc7c5ed0c7021081"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: e122689bb55526380febb96bcc7c5ed0c7021081
|
|
freebsd_arm_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-0c7d3b4fa62fb66af4335e5b31ff32135b068cde-{{checksum ".buildcache/cache-keys/package-0c7d3b4fa62fb66af4335e5b31ff32135b068cde"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-0c7d3b4fa62fb66af4335e5b31ff32135b068cde-{{checksum ".buildcache/cache-keys/package-0c7d3b4fa62fb66af4335e5b31ff32135b068cde"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 0c7d3b4fa62fb66af4335e5b31ff32135b068cde
|
|
linux_386_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-663ada3c310fe0213beb7beec5075b14be941146-{{checksum ".buildcache/cache-keys/package-663ada3c310fe0213beb7beec5075b14be941146"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-663ada3c310fe0213beb7beec5075b14be941146-{{checksum ".buildcache/cache-keys/package-663ada3c310fe0213beb7beec5075b14be941146"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 663ada3c310fe0213beb7beec5075b14be941146
|
|
linux_amd64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-6fb96028f986443216f0effef7298278d0a5b49b-{{checksum ".buildcache/cache-keys/package-6fb96028f986443216f0effef7298278d0a5b49b"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-6fb96028f986443216f0effef7298278d0a5b49b-{{checksum ".buildcache/cache-keys/package-6fb96028f986443216f0effef7298278d0a5b49b"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 6fb96028f986443216f0effef7298278d0a5b49b
|
|
linux_arm_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-87b442d50b8181e857d331b135def69f9e986436-{{checksum ".buildcache/cache-keys/package-87b442d50b8181e857d331b135def69f9e986436"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-87b442d50b8181e857d331b135def69f9e986436-{{checksum ".buildcache/cache-keys/package-87b442d50b8181e857d331b135def69f9e986436"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 87b442d50b8181e857d331b135def69f9e986436
|
|
linux_arm64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-1b6384f03339995616fcd7fff044b50358d52694-{{checksum ".buildcache/cache-keys/package-1b6384f03339995616fcd7fff044b50358d52694"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-1b6384f03339995616fcd7fff044b50358d52694-{{checksum ".buildcache/cache-keys/package-1b6384f03339995616fcd7fff044b50358d52694"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 1b6384f03339995616fcd7fff044b50358d52694
|
|
netbsd_386_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-b299198f3749dd27089ac5a59703ef105a045ee6-{{checksum ".buildcache/cache-keys/package-b299198f3749dd27089ac5a59703ef105a045ee6"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-b299198f3749dd27089ac5a59703ef105a045ee6-{{checksum ".buildcache/cache-keys/package-b299198f3749dd27089ac5a59703ef105a045ee6"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: b299198f3749dd27089ac5a59703ef105a045ee6
|
|
netbsd_amd64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-7e08466f11deaa40bc94299b075d9f2178303acf-{{checksum ".buildcache/cache-keys/package-7e08466f11deaa40bc94299b075d9f2178303acf"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-7e08466f11deaa40bc94299b075d9f2178303acf-{{checksum ".buildcache/cache-keys/package-7e08466f11deaa40bc94299b075d9f2178303acf"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 7e08466f11deaa40bc94299b075d9f2178303acf
|
|
openbsd_386_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-692f4c2f96349682f049fd1eea4e3bea3e3545f0-{{checksum ".buildcache/cache-keys/package-692f4c2f96349682f049fd1eea4e3bea3e3545f0"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-692f4c2f96349682f049fd1eea4e3bea3e3545f0-{{checksum ".buildcache/cache-keys/package-692f4c2f96349682f049fd1eea4e3bea3e3545f0"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 692f4c2f96349682f049fd1eea4e3bea3e3545f0
|
|
openbsd_amd64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-51d3a9bf7b5c4b0efa7c2574421cc6b617d282e0-{{checksum ".buildcache/cache-keys/package-51d3a9bf7b5c4b0efa7c2574421cc6b617d282e0"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-51d3a9bf7b5c4b0efa7c2574421cc6b617d282e0-{{checksum ".buildcache/cache-keys/package-51d3a9bf7b5c4b0efa7c2574421cc6b617d282e0"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: 51d3a9bf7b5c4b0efa7c2574421cc6b617d282e0
|
|
solaris_amd64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-f3b2fbba2d9d742d16973127870565295b26242f-{{checksum ".buildcache/cache-keys/package-f3b2fbba2d9d742d16973127870565295b26242f"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-f3b2fbba2d9d742d16973127870565295b26242f-{{checksum ".buildcache/cache-keys/package-f3b2fbba2d9d742d16973127870565295b26242f"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: f3b2fbba2d9d742d16973127870565295b26242f
|
|
windows_386_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-ec5997e8f66fa265c5f093975e6da56fbaffd801-{{checksum ".buildcache/cache-keys/package-ec5997e8f66fa265c5f093975e6da56fbaffd801"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-ec5997e8f66fa265c5f093975e6da56fbaffd801-{{checksum ".buildcache/cache-keys/package-ec5997e8f66fa265c5f093975e6da56fbaffd801"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: ec5997e8f66fa265c5f093975e6da56fbaffd801
|
|
windows_amd64_package:
|
|
executor: builder
|
|
steps:
|
|
- setup_remote_docker:
|
|
version: 19.03.12
|
|
docker_layer_caching: false
|
|
- add_ssh_keys:
|
|
fingerprints:
|
|
- 0e:03:77:f4:e2:c3:56:c2:53:6a:03:e1:31:91:2f:06
|
|
- checkout:
|
|
path: .
|
|
- run:
|
|
command: make -C packages*.lock write-package-cache-key
|
|
name: Write package cache key
|
|
- restore_cache:
|
|
key: package-abcc2f1feaa4aa4bf7ee90971cb41812c895970f-{{checksum ".buildcache/cache-keys/package-abcc2f1feaa4aa4bf7ee90971cb41812c895970f"}}
|
|
name: Restore package cache
|
|
- run:
|
|
command: |2
|
|
|
|
if ! { PKG=$(find .buildcache/packages/store -maxdepth 1 -mindepth 1 -name '*.zip' 2> /dev/null) && [ -n "$PKG" ]; }; then
|
|
echo "No package found, continuing with build."
|
|
exit 0
|
|
fi
|
|
echo "Package already cached, skipping build."
|
|
circleci-agent step halt
|
|
name: Check cache status
|
|
- run:
|
|
command: make -C packages*.lock write-builder-cache-keys
|
|
name: Write builder layer cache keys
|
|
- restore_cache:
|
|
key: copy-source_f4d8_{{checksum ".buildcache/cache-keys/copy-source-f4d858fefd04dbc5852777d5c75257a58a52e1ad"}}
|
|
keys:
|
|
- warm-go-build-vendor-cache_dcbb_{{checksum ".buildcache/cache-keys/warm-go-build-vendor-cache-dcbb2085ceca726bbb20e68e590b7745bdfc34a3"}}
|
|
- build-static-assets_373e_{{checksum ".buildcache/cache-keys/build-static-assets-373ea9e750a0bd0fe70f0e11fc92d848bfe14dbc"}}
|
|
- build-ui_993e_{{checksum ".buildcache/cache-keys/build-ui-993e50cbb3d37120b1391442177827b615c77f82"}}
|
|
- ui-dependencies_5132_{{checksum ".buildcache/cache-keys/ui-dependencies-513283a98d2b8a1570bf027e95364b888df651a9"}}
|
|
- install-yarn_6b98_{{checksum ".buildcache/cache-keys/install-yarn-6b98fb22387ba58bb85acb0cc5909e6b6b2dbfea"}}
|
|
- set-workdir_577a_{{checksum ".buildcache/cache-keys/set-workdir-577aad3893a929a48a2ce7319179c253507dee67"}}
|
|
- install-go-tools_a10e_{{checksum ".buildcache/cache-keys/install-go-tools-a10e38af920222100809a5d52ac413e922688b48"}}
|
|
- install-go_d3cf_{{checksum ".buildcache/cache-keys/install-go-d3cfbf34edb1074513e0377a86595f5e740cd03b"}}
|
|
- base_c6cd_{{checksum ".buildcache/cache-keys/base-c6cdf1b224722d2520e082320f2a71875913247c"}}
|
|
name: 'Restore Builder Image Cache: copy-source'
|
|
- run:
|
|
command: make -C packages*.lock load-builder-cache
|
|
name: Load whatever builder cache we have (if any) into the Docker daemon
|
|
no_output_timeout: 30m
|
|
- run:
|
|
command: |2-
|
|
|
|
KEYFILE="$HOME/.ssh/id_rsa_c6969882dc046c39ddac8305e3151c98"
|
|
eval "$(ssh-agent -s)"
|
|
if [ -f "$KEYFILE" ]; then
|
|
ssh-add "$KEYFILE"
|
|
else
|
|
echo "==> INFO: SSH key for github.com not found"
|
|
echo " Attempts to access private repositories from within"
|
|
echo " the build will fail, e.g. for private go modules, or"
|
|
echo " attempts to directly clone private repositories."
|
|
fi
|
|
|
|
make -C packages*.lock package
|
|
name: Compile Package
|
|
- run:
|
|
command: ls -lahR .buildcache/packages
|
|
name: List packages
|
|
- save_cache:
|
|
paths:
|
|
- .buildcache/packages/store
|
|
key: package-abcc2f1feaa4aa4bf7ee90971cb41812c895970f-{{checksum ".buildcache/cache-keys/package-abcc2f1feaa4aa4bf7ee90971cb41812c895970f"}}
|
|
name: Save package cache
|
|
environment:
|
|
PACKAGE_SPEC_ID: abcc2f1feaa4aa4bf7ee90971cb41812c895970f
|
|
workflows:
|
|
build-c92e36137d5c5886:
|
|
jobs:
|
|
- build-common-layers: {}
|
|
- darwin_amd64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- bundle-releases:
|
|
requires:
|
|
- darwin_amd64_package
|
|
- darwin_arm64_package
|
|
- freebsd_386_package
|
|
- freebsd_amd64_package
|
|
- freebsd_arm_package
|
|
- linux_386_package
|
|
- linux_amd64_package
|
|
- linux_arm_package
|
|
- linux_arm64_package
|
|
- netbsd_386_package
|
|
- netbsd_amd64_package
|
|
- openbsd_386_package
|
|
- openbsd_amd64_package
|
|
- solaris_amd64_package
|
|
- windows_386_package
|
|
- windows_amd64_package
|
|
- darwin_arm64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- freebsd_386_package:
|
|
requires:
|
|
- build-common-layers
|
|
- freebsd_amd64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- freebsd_arm_package:
|
|
requires:
|
|
- build-common-layers
|
|
- linux_386_package:
|
|
requires:
|
|
- build-common-layers
|
|
- linux_amd64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- linux_arm_package:
|
|
requires:
|
|
- build-common-layers
|
|
- linux_arm64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- netbsd_386_package:
|
|
requires:
|
|
- build-common-layers
|
|
- netbsd_amd64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- openbsd_386_package:
|
|
requires:
|
|
- build-common-layers
|
|
- openbsd_amd64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- solaris_amd64_package:
|
|
requires:
|
|
- build-common-layers
|
|
- windows_386_package:
|
|
requires:
|
|
- build-common-layers
|
|
- windows_amd64_package:
|
|
requires:
|
|
- build-common-layers
|