Files
threshold/.circleci/config/@build-release.yml
T

1280 lines
55 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: copy-source_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
name: 'Restore Layer Cache: copy-source'
- run:
command: LAYER_SPEC_ID=03-copy-source-db5ea48ff629572afc6847b856f42eb44dba173a 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-a0554df6c19ccd03a9a1ee035cb15e69108b7442-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-ui-8cb30555af80540d4f7e7050d0292010b8214df2-image
name: 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 02-go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f-image
name: Build go-modules 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-copy-source-db5ea48ff629572afc6847b856f42eb44dba173a-image
name: Build copy-source 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-copy-source-db5ea48ff629572afc6847b856f42eb44dba173a-save
name: Build copy-source layer
- save_cache:
paths:
- .buildcache/archives/03-copy-source-db5ea48ff629572afc6847b856f42eb44dba173a.tar.gz
key: copy-source_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
name: 'Save Layer Cache: copy-source'
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-5d48176bef57467fba5af8bcd6a233b1f95e1f51-{{checksum ".buildcache/cache-keys/package-5d48176bef57467fba5af8bcd6a233b1f95e1f51"}}
name: Restore package cache
- restore_cache:
key: package-02f997250d12c1bf75f0aed5b80567a7c23d24d8-{{checksum ".buildcache/cache-keys/package-02f997250d12c1bf75f0aed5b80567a7c23d24d8"}}
name: Restore package cache
- restore_cache:
key: package-69383ede84604903d0deaf2f7c276f85fc897687-{{checksum ".buildcache/cache-keys/package-69383ede84604903d0deaf2f7c276f85fc897687"}}
name: Restore package cache
- restore_cache:
key: package-fad3402f5ac90b26a597541b6736551c699561b8-{{checksum ".buildcache/cache-keys/package-fad3402f5ac90b26a597541b6736551c699561b8"}}
name: Restore package cache
- restore_cache:
key: package-960eda5abe8abb1a2e1d9e65199288b6e2670818-{{checksum ".buildcache/cache-keys/package-960eda5abe8abb1a2e1d9e65199288b6e2670818"}}
name: Restore package cache
- restore_cache:
key: package-4388353363f805b8b614a67a08fefd09a14e4209-{{checksum ".buildcache/cache-keys/package-4388353363f805b8b614a67a08fefd09a14e4209"}}
name: Restore package cache
- restore_cache:
key: package-e30aa61c70cd5b8324a4e5f9ed7b31cddb16d3c2-{{checksum ".buildcache/cache-keys/package-e30aa61c70cd5b8324a4e5f9ed7b31cddb16d3c2"}}
name: Restore package cache
- restore_cache:
key: package-c01e1497b4fcc8e9c83cf717ca6a33a06dacc202-{{checksum ".buildcache/cache-keys/package-c01e1497b4fcc8e9c83cf717ca6a33a06dacc202"}}
name: Restore package cache
- restore_cache:
key: package-9cb84e99eb82983e85d55490b7cd428a205c58d7-{{checksum ".buildcache/cache-keys/package-9cb84e99eb82983e85d55490b7cd428a205c58d7"}}
name: Restore package cache
- restore_cache:
key: package-9919fdf3c07b6c12ce0f90ff5b05b02f8b77414a-{{checksum ".buildcache/cache-keys/package-9919fdf3c07b6c12ce0f90ff5b05b02f8b77414a"}}
name: Restore package cache
- restore_cache:
key: package-66b78e8f8d96318d73c60de54ca450e8c7146796-{{checksum ".buildcache/cache-keys/package-66b78e8f8d96318d73c60de54ca450e8c7146796"}}
name: Restore package cache
- restore_cache:
key: package-2db1d42b9d091a7556042927fbc2779f59882f60-{{checksum ".buildcache/cache-keys/package-2db1d42b9d091a7556042927fbc2779f59882f60"}}
name: Restore package cache
- restore_cache:
key: package-60a29fdcc19d1b113534b92f02e06802b6e2965e-{{checksum ".buildcache/cache-keys/package-60a29fdcc19d1b113534b92f02e06802b6e2965e"}}
name: Restore package cache
- restore_cache:
key: package-c77468abd6bbed7d93bcc292a69d275b13cc55e8-{{checksum ".buildcache/cache-keys/package-c77468abd6bbed7d93bcc292a69d275b13cc55e8"}}
name: Restore package cache
- restore_cache:
key: package-337b946576115552f45ad05931ee66ce5bd1f086-{{checksum ".buildcache/cache-keys/package-337b946576115552f45ad05931ee66ce5bd1f086"}}
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-c363041f6f276692.yml
name: Update Lockfile Name
- run:
command: tar -czf packages-c363041f6f276692.tar.gz .buildcache/packages lockfile-c363041f6f276692.yml
name: Create Raw Package Tarball
- run:
command: tar -czf meta-c363041f6f276692.tar.gz .buildcache/packages/store/*.json lockfile-c363041f6f276692.yml
name: Create Metadata Tarball
- store_artifacts:
path: lockfile-c363041f6f276692.yml
- store_artifacts:
path: packages-c363041f6f276692.tar.gz
- store_artifacts:
path: meta-c363041f6f276692.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-5d48176bef57467fba5af8bcd6a233b1f95e1f51-{{checksum ".buildcache/cache-keys/package-5d48176bef57467fba5af8bcd6a233b1f95e1f51"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-5d48176bef57467fba5af8bcd6a233b1f95e1f51-{{checksum ".buildcache/cache-keys/package-5d48176bef57467fba5af8bcd6a233b1f95e1f51"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 5d48176bef57467fba5af8bcd6a233b1f95e1f51
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-02f997250d12c1bf75f0aed5b80567a7c23d24d8-{{checksum ".buildcache/cache-keys/package-02f997250d12c1bf75f0aed5b80567a7c23d24d8"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-02f997250d12c1bf75f0aed5b80567a7c23d24d8-{{checksum ".buildcache/cache-keys/package-02f997250d12c1bf75f0aed5b80567a7c23d24d8"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 02f997250d12c1bf75f0aed5b80567a7c23d24d8
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-69383ede84604903d0deaf2f7c276f85fc897687-{{checksum ".buildcache/cache-keys/package-69383ede84604903d0deaf2f7c276f85fc897687"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-69383ede84604903d0deaf2f7c276f85fc897687-{{checksum ".buildcache/cache-keys/package-69383ede84604903d0deaf2f7c276f85fc897687"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 69383ede84604903d0deaf2f7c276f85fc897687
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-fad3402f5ac90b26a597541b6736551c699561b8-{{checksum ".buildcache/cache-keys/package-fad3402f5ac90b26a597541b6736551c699561b8"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-fad3402f5ac90b26a597541b6736551c699561b8-{{checksum ".buildcache/cache-keys/package-fad3402f5ac90b26a597541b6736551c699561b8"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: fad3402f5ac90b26a597541b6736551c699561b8
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-960eda5abe8abb1a2e1d9e65199288b6e2670818-{{checksum ".buildcache/cache-keys/package-960eda5abe8abb1a2e1d9e65199288b6e2670818"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-960eda5abe8abb1a2e1d9e65199288b6e2670818-{{checksum ".buildcache/cache-keys/package-960eda5abe8abb1a2e1d9e65199288b6e2670818"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 960eda5abe8abb1a2e1d9e65199288b6e2670818
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-4388353363f805b8b614a67a08fefd09a14e4209-{{checksum ".buildcache/cache-keys/package-4388353363f805b8b614a67a08fefd09a14e4209"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-4388353363f805b8b614a67a08fefd09a14e4209-{{checksum ".buildcache/cache-keys/package-4388353363f805b8b614a67a08fefd09a14e4209"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 4388353363f805b8b614a67a08fefd09a14e4209
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-e30aa61c70cd5b8324a4e5f9ed7b31cddb16d3c2-{{checksum ".buildcache/cache-keys/package-e30aa61c70cd5b8324a4e5f9ed7b31cddb16d3c2"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-e30aa61c70cd5b8324a4e5f9ed7b31cddb16d3c2-{{checksum ".buildcache/cache-keys/package-e30aa61c70cd5b8324a4e5f9ed7b31cddb16d3c2"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: e30aa61c70cd5b8324a4e5f9ed7b31cddb16d3c2
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-c01e1497b4fcc8e9c83cf717ca6a33a06dacc202-{{checksum ".buildcache/cache-keys/package-c01e1497b4fcc8e9c83cf717ca6a33a06dacc202"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-c01e1497b4fcc8e9c83cf717ca6a33a06dacc202-{{checksum ".buildcache/cache-keys/package-c01e1497b4fcc8e9c83cf717ca6a33a06dacc202"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: c01e1497b4fcc8e9c83cf717ca6a33a06dacc202
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-9cb84e99eb82983e85d55490b7cd428a205c58d7-{{checksum ".buildcache/cache-keys/package-9cb84e99eb82983e85d55490b7cd428a205c58d7"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-9cb84e99eb82983e85d55490b7cd428a205c58d7-{{checksum ".buildcache/cache-keys/package-9cb84e99eb82983e85d55490b7cd428a205c58d7"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 9cb84e99eb82983e85d55490b7cd428a205c58d7
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-9919fdf3c07b6c12ce0f90ff5b05b02f8b77414a-{{checksum ".buildcache/cache-keys/package-9919fdf3c07b6c12ce0f90ff5b05b02f8b77414a"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-9919fdf3c07b6c12ce0f90ff5b05b02f8b77414a-{{checksum ".buildcache/cache-keys/package-9919fdf3c07b6c12ce0f90ff5b05b02f8b77414a"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 9919fdf3c07b6c12ce0f90ff5b05b02f8b77414a
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-66b78e8f8d96318d73c60de54ca450e8c7146796-{{checksum ".buildcache/cache-keys/package-66b78e8f8d96318d73c60de54ca450e8c7146796"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-66b78e8f8d96318d73c60de54ca450e8c7146796-{{checksum ".buildcache/cache-keys/package-66b78e8f8d96318d73c60de54ca450e8c7146796"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 66b78e8f8d96318d73c60de54ca450e8c7146796
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-2db1d42b9d091a7556042927fbc2779f59882f60-{{checksum ".buildcache/cache-keys/package-2db1d42b9d091a7556042927fbc2779f59882f60"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-2db1d42b9d091a7556042927fbc2779f59882f60-{{checksum ".buildcache/cache-keys/package-2db1d42b9d091a7556042927fbc2779f59882f60"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 2db1d42b9d091a7556042927fbc2779f59882f60
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-60a29fdcc19d1b113534b92f02e06802b6e2965e-{{checksum ".buildcache/cache-keys/package-60a29fdcc19d1b113534b92f02e06802b6e2965e"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-60a29fdcc19d1b113534b92f02e06802b6e2965e-{{checksum ".buildcache/cache-keys/package-60a29fdcc19d1b113534b92f02e06802b6e2965e"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 60a29fdcc19d1b113534b92f02e06802b6e2965e
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-c77468abd6bbed7d93bcc292a69d275b13cc55e8-{{checksum ".buildcache/cache-keys/package-c77468abd6bbed7d93bcc292a69d275b13cc55e8"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-c77468abd6bbed7d93bcc292a69d275b13cc55e8-{{checksum ".buildcache/cache-keys/package-c77468abd6bbed7d93bcc292a69d275b13cc55e8"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: c77468abd6bbed7d93bcc292a69d275b13cc55e8
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-337b946576115552f45ad05931ee66ce5bd1f086-{{checksum ".buildcache/cache-keys/package-337b946576115552f45ad05931ee66ce5bd1f086"}}
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_db5e_{{checksum ".buildcache/cache-keys/copy-source-db5ea48ff629572afc6847b856f42eb44dba173a"}}
keys:
- go-modules_eb94_{{checksum ".buildcache/cache-keys/go-modules-eb94dfdeafb25eb57de867615bddad2a98d2584f"}}
- ui_8cb3_{{checksum ".buildcache/cache-keys/ui-8cb30555af80540d4f7e7050d0292010b8214df2"}}
- base_a055_{{checksum ".buildcache/cache-keys/base-a0554df6c19ccd03a9a1ee035cb15e69108b7442"}}
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-337b946576115552f45ad05931ee66ce5bd1f086-{{checksum ".buildcache/cache-keys/package-337b946576115552f45ad05931ee66ce5bd1f086"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 337b946576115552f45ad05931ee66ce5bd1f086
workflows:
build-c363041f6f276692:
jobs:
- build-common-layers: {}
- darwin_amd64_package:
requires:
- build-common-layers
- bundle-releases:
requires:
- darwin_amd64_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
- 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