Files
threshold/.circleci/config/@build-release.yml
T
2021-01-05 09:26:21 -05:00

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:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-builder-cache-keys
name: Write builder layer cache keys
- restore_cache:
key: copy-source_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
name: 'Restore Layer Cache: copy-source'
- run:
command: LAYER_SPEC_ID=03-copy-source-1416e39821efa499a605178d40b5fdb48abfa761 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-f430a0a4486abb62bd45d9b59b17c51a0811a02c-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-469da5a8fd1988db3e0a502ff0e41cc742d98aaf-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-139dc02190f32902141790c18ea21393e3bb7008-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-1416e39821efa499a605178d40b5fdb48abfa761-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-1416e39821efa499a605178d40b5fdb48abfa761-save
name: Build copy-source layer
- save_cache:
paths:
- .buildcache/archives/03-copy-source-1416e39821efa499a605178d40b5fdb48abfa761.tar.gz
key: copy-source_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
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-0b0999e2a1eeab77255e69d954028001245c7578-{{checksum ".buildcache/cache-keys/package-0b0999e2a1eeab77255e69d954028001245c7578"}}
name: Restore package cache
- restore_cache:
key: package-d31f089b657f62dbaf26193d19278aa64c797ef8-{{checksum ".buildcache/cache-keys/package-d31f089b657f62dbaf26193d19278aa64c797ef8"}}
name: Restore package cache
- restore_cache:
key: package-1638f5c23b32416e7cf1ca0c2cad7c03176cc4f1-{{checksum ".buildcache/cache-keys/package-1638f5c23b32416e7cf1ca0c2cad7c03176cc4f1"}}
name: Restore package cache
- restore_cache:
key: package-00c8330fa7197e429e7c1d816bd255b9ae44e3c0-{{checksum ".buildcache/cache-keys/package-00c8330fa7197e429e7c1d816bd255b9ae44e3c0"}}
name: Restore package cache
- restore_cache:
key: package-0de36bfb3b8f3890345d9a174768fa2d8da8c89a-{{checksum ".buildcache/cache-keys/package-0de36bfb3b8f3890345d9a174768fa2d8da8c89a"}}
name: Restore package cache
- restore_cache:
key: package-48c0f45818d5dfa3ccfae28058c82418b349a2b7-{{checksum ".buildcache/cache-keys/package-48c0f45818d5dfa3ccfae28058c82418b349a2b7"}}
name: Restore package cache
- restore_cache:
key: package-3b5176ee30a65482c5dc064986dece2b2b8c5166-{{checksum ".buildcache/cache-keys/package-3b5176ee30a65482c5dc064986dece2b2b8c5166"}}
name: Restore package cache
- restore_cache:
key: package-fe2d3806e01a1e5582674305972541cf4892f641-{{checksum ".buildcache/cache-keys/package-fe2d3806e01a1e5582674305972541cf4892f641"}}
name: Restore package cache
- restore_cache:
key: package-fba2ff7d31a263335061f5a1847cf388b78003d8-{{checksum ".buildcache/cache-keys/package-fba2ff7d31a263335061f5a1847cf388b78003d8"}}
name: Restore package cache
- restore_cache:
key: package-de773b63c1c02e457d515bb5645061e88faafb32-{{checksum ".buildcache/cache-keys/package-de773b63c1c02e457d515bb5645061e88faafb32"}}
name: Restore package cache
- restore_cache:
key: package-1adde57221fc32e804290b1cce8c8e7ed98b838b-{{checksum ".buildcache/cache-keys/package-1adde57221fc32e804290b1cce8c8e7ed98b838b"}}
name: Restore package cache
- restore_cache:
key: package-4a1719387d2b487ec3d375104632f5dce6add8d2-{{checksum ".buildcache/cache-keys/package-4a1719387d2b487ec3d375104632f5dce6add8d2"}}
name: Restore package cache
- restore_cache:
key: package-45b35f56684ca967ea6a1ec4932cfb63c8ca1e80-{{checksum ".buildcache/cache-keys/package-45b35f56684ca967ea6a1ec4932cfb63c8ca1e80"}}
name: Restore package cache
- restore_cache:
key: package-c4b89b58013fb055412fbf9ce3ef061485380a10-{{checksum ".buildcache/cache-keys/package-c4b89b58013fb055412fbf9ce3ef061485380a10"}}
name: Restore package cache
- restore_cache:
key: package-8ed19a2f9f409ba177b54811303b1bafb07fe3c4-{{checksum ".buildcache/cache-keys/package-8ed19a2f9f409ba177b54811303b1bafb07fe3c4"}}
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-c7a9cf46ad658a18.yml
name: Update Lockfile Name
- run:
command: tar -czf packages-c7a9cf46ad658a18.tar.gz .buildcache/packages lockfile-c7a9cf46ad658a18.yml
name: Create Raw Package Tarball
- run:
command: tar -czf meta-c7a9cf46ad658a18.tar.gz .buildcache/packages/store/*.json lockfile-c7a9cf46ad658a18.yml
name: Create Metadata Tarball
- store_artifacts:
path: lockfile-c7a9cf46ad658a18.yml
- store_artifacts:
path: packages-c7a9cf46ad658a18.tar.gz
- store_artifacts:
path: meta-c7a9cf46ad658a18.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:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-0b0999e2a1eeab77255e69d954028001245c7578-{{checksum ".buildcache/cache-keys/package-0b0999e2a1eeab77255e69d954028001245c7578"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-0b0999e2a1eeab77255e69d954028001245c7578-{{checksum ".buildcache/cache-keys/package-0b0999e2a1eeab77255e69d954028001245c7578"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 0b0999e2a1eeab77255e69d954028001245c7578
freebsd_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-d31f089b657f62dbaf26193d19278aa64c797ef8-{{checksum ".buildcache/cache-keys/package-d31f089b657f62dbaf26193d19278aa64c797ef8"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-d31f089b657f62dbaf26193d19278aa64c797ef8-{{checksum ".buildcache/cache-keys/package-d31f089b657f62dbaf26193d19278aa64c797ef8"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: d31f089b657f62dbaf26193d19278aa64c797ef8
freebsd_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-1638f5c23b32416e7cf1ca0c2cad7c03176cc4f1-{{checksum ".buildcache/cache-keys/package-1638f5c23b32416e7cf1ca0c2cad7c03176cc4f1"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-1638f5c23b32416e7cf1ca0c2cad7c03176cc4f1-{{checksum ".buildcache/cache-keys/package-1638f5c23b32416e7cf1ca0c2cad7c03176cc4f1"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 1638f5c23b32416e7cf1ca0c2cad7c03176cc4f1
freebsd_arm_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-00c8330fa7197e429e7c1d816bd255b9ae44e3c0-{{checksum ".buildcache/cache-keys/package-00c8330fa7197e429e7c1d816bd255b9ae44e3c0"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-00c8330fa7197e429e7c1d816bd255b9ae44e3c0-{{checksum ".buildcache/cache-keys/package-00c8330fa7197e429e7c1d816bd255b9ae44e3c0"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 00c8330fa7197e429e7c1d816bd255b9ae44e3c0
linux_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-0de36bfb3b8f3890345d9a174768fa2d8da8c89a-{{checksum ".buildcache/cache-keys/package-0de36bfb3b8f3890345d9a174768fa2d8da8c89a"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-0de36bfb3b8f3890345d9a174768fa2d8da8c89a-{{checksum ".buildcache/cache-keys/package-0de36bfb3b8f3890345d9a174768fa2d8da8c89a"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 0de36bfb3b8f3890345d9a174768fa2d8da8c89a
linux_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-48c0f45818d5dfa3ccfae28058c82418b349a2b7-{{checksum ".buildcache/cache-keys/package-48c0f45818d5dfa3ccfae28058c82418b349a2b7"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-48c0f45818d5dfa3ccfae28058c82418b349a2b7-{{checksum ".buildcache/cache-keys/package-48c0f45818d5dfa3ccfae28058c82418b349a2b7"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 48c0f45818d5dfa3ccfae28058c82418b349a2b7
linux_arm_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-3b5176ee30a65482c5dc064986dece2b2b8c5166-{{checksum ".buildcache/cache-keys/package-3b5176ee30a65482c5dc064986dece2b2b8c5166"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-3b5176ee30a65482c5dc064986dece2b2b8c5166-{{checksum ".buildcache/cache-keys/package-3b5176ee30a65482c5dc064986dece2b2b8c5166"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 3b5176ee30a65482c5dc064986dece2b2b8c5166
linux_arm64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-fe2d3806e01a1e5582674305972541cf4892f641-{{checksum ".buildcache/cache-keys/package-fe2d3806e01a1e5582674305972541cf4892f641"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-fe2d3806e01a1e5582674305972541cf4892f641-{{checksum ".buildcache/cache-keys/package-fe2d3806e01a1e5582674305972541cf4892f641"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: fe2d3806e01a1e5582674305972541cf4892f641
netbsd_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-fba2ff7d31a263335061f5a1847cf388b78003d8-{{checksum ".buildcache/cache-keys/package-fba2ff7d31a263335061f5a1847cf388b78003d8"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-fba2ff7d31a263335061f5a1847cf388b78003d8-{{checksum ".buildcache/cache-keys/package-fba2ff7d31a263335061f5a1847cf388b78003d8"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: fba2ff7d31a263335061f5a1847cf388b78003d8
netbsd_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-de773b63c1c02e457d515bb5645061e88faafb32-{{checksum ".buildcache/cache-keys/package-de773b63c1c02e457d515bb5645061e88faafb32"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-de773b63c1c02e457d515bb5645061e88faafb32-{{checksum ".buildcache/cache-keys/package-de773b63c1c02e457d515bb5645061e88faafb32"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: de773b63c1c02e457d515bb5645061e88faafb32
openbsd_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-1adde57221fc32e804290b1cce8c8e7ed98b838b-{{checksum ".buildcache/cache-keys/package-1adde57221fc32e804290b1cce8c8e7ed98b838b"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-1adde57221fc32e804290b1cce8c8e7ed98b838b-{{checksum ".buildcache/cache-keys/package-1adde57221fc32e804290b1cce8c8e7ed98b838b"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 1adde57221fc32e804290b1cce8c8e7ed98b838b
openbsd_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-4a1719387d2b487ec3d375104632f5dce6add8d2-{{checksum ".buildcache/cache-keys/package-4a1719387d2b487ec3d375104632f5dce6add8d2"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-4a1719387d2b487ec3d375104632f5dce6add8d2-{{checksum ".buildcache/cache-keys/package-4a1719387d2b487ec3d375104632f5dce6add8d2"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 4a1719387d2b487ec3d375104632f5dce6add8d2
solaris_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-45b35f56684ca967ea6a1ec4932cfb63c8ca1e80-{{checksum ".buildcache/cache-keys/package-45b35f56684ca967ea6a1ec4932cfb63c8ca1e80"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-45b35f56684ca967ea6a1ec4932cfb63c8ca1e80-{{checksum ".buildcache/cache-keys/package-45b35f56684ca967ea6a1ec4932cfb63c8ca1e80"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 45b35f56684ca967ea6a1ec4932cfb63c8ca1e80
windows_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-c4b89b58013fb055412fbf9ce3ef061485380a10-{{checksum ".buildcache/cache-keys/package-c4b89b58013fb055412fbf9ce3ef061485380a10"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-c4b89b58013fb055412fbf9ce3ef061485380a10-{{checksum ".buildcache/cache-keys/package-c4b89b58013fb055412fbf9ce3ef061485380a10"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: c4b89b58013fb055412fbf9ce3ef061485380a10
windows_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout:
path: .
- run:
command: make -C packages*.lock write-package-cache-key
name: Write package cache key
- restore_cache:
key: package-8ed19a2f9f409ba177b54811303b1bafb07fe3c4-{{checksum ".buildcache/cache-keys/package-8ed19a2f9f409ba177b54811303b1bafb07fe3c4"}}
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_1416_{{checksum ".buildcache/cache-keys/copy-source-1416e39821efa499a605178d40b5fdb48abfa761"}}
keys:
- go-modules_139d_{{checksum ".buildcache/cache-keys/go-modules-139dc02190f32902141790c18ea21393e3bb7008"}}
- ui_469d_{{checksum ".buildcache/cache-keys/ui-469da5a8fd1988db3e0a502ff0e41cc742d98aaf"}}
- base_f430_{{checksum ".buildcache/cache-keys/base-f430a0a4486abb62bd45d9b59b17c51a0811a02c"}}
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-8ed19a2f9f409ba177b54811303b1bafb07fe3c4-{{checksum ".buildcache/cache-keys/package-8ed19a2f9f409ba177b54811303b1bafb07fe3c4"}}
name: Save package cache
environment:
PACKAGE_SPEC_ID: 8ed19a2f9f409ba177b54811303b1bafb07fe3c4
workflows:
build-c7a9cf46ad658a18:
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