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

1279 lines
55 KiB
YAML
Raw Normal View History

version: "2.1"
2020-09-28 17:15:28 +01:00
executors:
builder:
docker:
- image: docker.mirror.hashicorp.services/circleci/buildpack-deps
shell: /usr/bin/env bash -euo pipefail -c
2020-09-28 17:15:28 +01:00
environment:
AUTO_INSTALL_TOOLS: "YES"
2020-09-28 17:15:28 +01:00
BUILDKIT_PROGRESS: plain
PRODUCT_REVISION: ""
2020-09-28 17:15:28 +01:00
builder-machine:
resource_class: xlarge
2020-09-28 17:15:28 +01:00
machine:
image: ubuntu-1604:202007-01
shell: /usr/bin/env bash -euo pipefail -c
2020-09-28 17:15:28 +01:00
environment:
AUTO_INSTALL_TOOLS: "YES"
2020-09-28 17:15:28 +01:00
BUILDKIT_PROGRESS: plain
PRODUCT_REVISION: ""
2020-09-28 17:15:28 +01:00
jobs:
build-common-layers:
executor: builder-machine
steps:
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-09-28 17:15:28 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-09-28 17:15:28 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Layer Cache: copy-source'
2020-09-28 17:15:28 +01:00
- run:
2021-08-16 13:57:47 -04:00
command: LAYER_SPEC_ID=03-copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1 make -C packages*.lock load-builder-cache
2020-09-28 17:15:28 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
- run:
command: |2-
2020-09-28 17:15:28 +01:00
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
2021-08-16 13:57:47 -04:00
make -f packages*.lock/layer.mk 00-base-ec5342e30fcbfeb5947252a8ea679fb281052d16-image
name: Build base layer
2020-09-28 17:15:28 +01:00
- run:
command: |2-
2020-09-28 17:15:28 +01:00
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
2021-08-16 13:57:47 -04:00
make -f packages*.lock/layer.mk 01-ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a-image
name: Build ui layer
2020-09-28 17:15:28 +01:00
- run:
command: |2-
2020-09-28 17:15:28 +01:00
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
2021-08-16 13:57:47 -04:00
make -f packages*.lock/layer.mk 02-go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3-image
name: Build go-modules layer
2020-09-28 17:15:28 +01:00
- run:
command: |2-
2020-09-28 17:15:28 +01:00
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
2021-08-16 13:57:47 -04:00
make -f packages*.lock/layer.mk 03-copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1-image
name: Build copy-source layer
2020-09-28 17:15:28 +01:00
- 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
2021-08-16 13:57:47 -04:00
make -f packages*.lock/layer.mk 03-copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1-save
name: Build copy-source layer
2020-09-28 17:15:28 +01:00
- save_cache:
paths:
2021-08-16 13:57:47 -04:00
- .buildcache/archives/03-copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1.tar.gz
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
name: 'Save Layer Cache: copy-source'
bundle-releases:
executor: builder
steps:
- checkout:
path: .
2020-09-28 17:15:28 +01:00
- run:
command: make -C packages*.lock write-all-package-cache-keys
name: Write all package cache keys
2020-09-28 17:15:28 +01:00
- run:
command: mkdir -p .buildcache && echo "*" > .buildcache/.gitignore
name: Ignore .buildcache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-f149a7dd7ea93008e1e722fde1a1fd8a32f1b3eb-{{checksum ".buildcache/cache-keys/package-f149a7dd7ea93008e1e722fde1a1fd8a32f1b3eb"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-b6213b7038f5e22ef98537458ab26a9b59bf5e5c-{{checksum ".buildcache/cache-keys/package-b6213b7038f5e22ef98537458ab26a9b59bf5e5c"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-1c5ec6f7d4635c248c0056ea952ac87ff400e064-{{checksum ".buildcache/cache-keys/package-1c5ec6f7d4635c248c0056ea952ac87ff400e064"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-9dac6124622cf44d40bafe113ad73ef17a370d7b-{{checksum ".buildcache/cache-keys/package-9dac6124622cf44d40bafe113ad73ef17a370d7b"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-54aaa2a85a47d4419f5be0cfabba2d89a60dc5ff-{{checksum ".buildcache/cache-keys/package-54aaa2a85a47d4419f5be0cfabba2d89a60dc5ff"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-902a353757c2dc63df3c339af68f663508ba93e8-{{checksum ".buildcache/cache-keys/package-902a353757c2dc63df3c339af68f663508ba93e8"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-f93d412885f8e8aebdcfe0e657638185c0b27af0-{{checksum ".buildcache/cache-keys/package-f93d412885f8e8aebdcfe0e657638185c0b27af0"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-9ffc8d9121aec0004c72ae0a6556dea68004ea88-{{checksum ".buildcache/cache-keys/package-9ffc8d9121aec0004c72ae0a6556dea68004ea88"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-95fabb04c65dd98cab76adf5a0bea6d8ac4e66fe-{{checksum ".buildcache/cache-keys/package-95fabb04c65dd98cab76adf5a0bea6d8ac4e66fe"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-d7d78e01c269c191ffcc18562e5fd2c2a2339b3d-{{checksum ".buildcache/cache-keys/package-d7d78e01c269c191ffcc18562e5fd2c2a2339b3d"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-fe99963f9278784e356ba731be14edf95bf364be-{{checksum ".buildcache/cache-keys/package-fe99963f9278784e356ba731be14edf95bf364be"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-e494551758347fdb8d1c50eeee27e94d88cd616c-{{checksum ".buildcache/cache-keys/package-e494551758347fdb8d1c50eeee27e94d88cd616c"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-2aef0a14a997f7a4dafd68d6a0f0b8a080df89af-{{checksum ".buildcache/cache-keys/package-2aef0a14a997f7a4dafd68d6a0f0b8a080df89af"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-588fb9fa9ca2840c8a13a201c24abccad52096d5-{{checksum ".buildcache/cache-keys/package-588fb9fa9ca2840c8a13a201c24abccad52096d5"}}
name: Restore package cache
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-d95b1d2bcc9cfdd3f8d1464361e0d0b0fa631725-{{checksum ".buildcache/cache-keys/package-d95b1d2bcc9cfdd3f8d1464361e0d0b0fa631725"}}
name: Restore package cache
2020-09-28 17:15:28 +01:00
- 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:
2021-08-16 13:11:30 -07:00
command: cp packages*.lock/pkgs.yml lockfile-f2519eceffccb9ef.yml
name: Update Lockfile Name
- run:
2021-08-16 13:11:30 -07:00
command: tar -czf packages-f2519eceffccb9ef.tar.gz .buildcache/packages lockfile-f2519eceffccb9ef.yml
name: Create Raw Package Tarball
- run:
2021-08-16 13:11:30 -07:00
command: tar -czf meta-f2519eceffccb9ef.tar.gz .buildcache/packages/store/*.json lockfile-f2519eceffccb9ef.yml
name: Create Metadata Tarball
- store_artifacts:
2021-08-16 13:11:30 -07:00
path: lockfile-f2519eceffccb9ef.yml
- store_artifacts:
2021-08-16 13:11:30 -07:00
path: packages-f2519eceffccb9ef.tar.gz
- store_artifacts:
2021-08-16 13:11:30 -07:00
path: meta-f2519eceffccb9ef.tar.gz
- store_artifacts:
path: .buildcache/packages
2020-09-28 17:15:28 +01:00
darwin_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-09-28 17:15:28 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-09-28 17:15:28 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-f149a7dd7ea93008e1e722fde1a1fd8a32f1b3eb-{{checksum ".buildcache/cache-keys/package-f149a7dd7ea93008e1e722fde1a1fd8a32f1b3eb"}}
2020-09-28 17:15:28 +01:00
name: Restore package cache
- run:
command: |2
2020-09-28 17:15:28 +01:00
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
2020-09-28 17:15:28 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-09-28 17:15:28 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-09-28 17:15:28 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-09-28 17:15:28 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-09-28 17:15:28 +01:00
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
2020-09-28 17:15:28 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-09-28 17:15:28 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-f149a7dd7ea93008e1e722fde1a1fd8a32f1b3eb-{{checksum ".buildcache/cache-keys/package-f149a7dd7ea93008e1e722fde1a1fd8a32f1b3eb"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: f149a7dd7ea93008e1e722fde1a1fd8a32f1b3eb
2020-10-09 22:02:21 +01:00
freebsd_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-b6213b7038f5e22ef98537458ab26a9b59bf5e5c-{{checksum ".buildcache/cache-keys/package-b6213b7038f5e22ef98537458ab26a9b59bf5e5c"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-b6213b7038f5e22ef98537458ab26a9b59bf5e5c-{{checksum ".buildcache/cache-keys/package-b6213b7038f5e22ef98537458ab26a9b59bf5e5c"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: b6213b7038f5e22ef98537458ab26a9b59bf5e5c
2020-10-09 22:02:21 +01:00
freebsd_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-1c5ec6f7d4635c248c0056ea952ac87ff400e064-{{checksum ".buildcache/cache-keys/package-1c5ec6f7d4635c248c0056ea952ac87ff400e064"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-1c5ec6f7d4635c248c0056ea952ac87ff400e064-{{checksum ".buildcache/cache-keys/package-1c5ec6f7d4635c248c0056ea952ac87ff400e064"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 1c5ec6f7d4635c248c0056ea952ac87ff400e064
2020-10-09 22:02:21 +01:00
freebsd_arm_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-9dac6124622cf44d40bafe113ad73ef17a370d7b-{{checksum ".buildcache/cache-keys/package-9dac6124622cf44d40bafe113ad73ef17a370d7b"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-9dac6124622cf44d40bafe113ad73ef17a370d7b-{{checksum ".buildcache/cache-keys/package-9dac6124622cf44d40bafe113ad73ef17a370d7b"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 9dac6124622cf44d40bafe113ad73ef17a370d7b
2020-10-09 22:02:21 +01:00
linux_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-54aaa2a85a47d4419f5be0cfabba2d89a60dc5ff-{{checksum ".buildcache/cache-keys/package-54aaa2a85a47d4419f5be0cfabba2d89a60dc5ff"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-54aaa2a85a47d4419f5be0cfabba2d89a60dc5ff-{{checksum ".buildcache/cache-keys/package-54aaa2a85a47d4419f5be0cfabba2d89a60dc5ff"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 54aaa2a85a47d4419f5be0cfabba2d89a60dc5ff
2020-09-28 17:15:28 +01:00
linux_amd64_package:
executor: builder
2020-10-09 22:02:21 +01:00
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-902a353757c2dc63df3c339af68f663508ba93e8-{{checksum ".buildcache/cache-keys/package-902a353757c2dc63df3c339af68f663508ba93e8"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-902a353757c2dc63df3c339af68f663508ba93e8-{{checksum ".buildcache/cache-keys/package-902a353757c2dc63df3c339af68f663508ba93e8"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 902a353757c2dc63df3c339af68f663508ba93e8
2020-10-09 22:02:21 +01:00
linux_arm_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-f93d412885f8e8aebdcfe0e657638185c0b27af0-{{checksum ".buildcache/cache-keys/package-f93d412885f8e8aebdcfe0e657638185c0b27af0"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock write-builder-cache-keys
name: Write builder layer cache keys
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-f93d412885f8e8aebdcfe0e657638185c0b27af0-{{checksum ".buildcache/cache-keys/package-f93d412885f8e8aebdcfe0e657638185c0b27af0"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: f93d412885f8e8aebdcfe0e657638185c0b27af0
2020-10-09 22:02:21 +01:00
linux_arm64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-9ffc8d9121aec0004c72ae0a6556dea68004ea88-{{checksum ".buildcache/cache-keys/package-9ffc8d9121aec0004c72ae0a6556dea68004ea88"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-9ffc8d9121aec0004c72ae0a6556dea68004ea88-{{checksum ".buildcache/cache-keys/package-9ffc8d9121aec0004c72ae0a6556dea68004ea88"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 9ffc8d9121aec0004c72ae0a6556dea68004ea88
2020-10-09 22:02:21 +01:00
netbsd_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-95fabb04c65dd98cab76adf5a0bea6d8ac4e66fe-{{checksum ".buildcache/cache-keys/package-95fabb04c65dd98cab76adf5a0bea6d8ac4e66fe"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-95fabb04c65dd98cab76adf5a0bea6d8ac4e66fe-{{checksum ".buildcache/cache-keys/package-95fabb04c65dd98cab76adf5a0bea6d8ac4e66fe"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 95fabb04c65dd98cab76adf5a0bea6d8ac4e66fe
2020-10-09 22:02:21 +01:00
netbsd_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-d7d78e01c269c191ffcc18562e5fd2c2a2339b3d-{{checksum ".buildcache/cache-keys/package-d7d78e01c269c191ffcc18562e5fd2c2a2339b3d"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-d7d78e01c269c191ffcc18562e5fd2c2a2339b3d-{{checksum ".buildcache/cache-keys/package-d7d78e01c269c191ffcc18562e5fd2c2a2339b3d"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: d7d78e01c269c191ffcc18562e5fd2c2a2339b3d
2020-10-09 22:02:21 +01:00
openbsd_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-fe99963f9278784e356ba731be14edf95bf364be-{{checksum ".buildcache/cache-keys/package-fe99963f9278784e356ba731be14edf95bf364be"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-fe99963f9278784e356ba731be14edf95bf364be-{{checksum ".buildcache/cache-keys/package-fe99963f9278784e356ba731be14edf95bf364be"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: fe99963f9278784e356ba731be14edf95bf364be
2020-10-09 22:02:21 +01:00
openbsd_amd64_package:
executor: builder
2020-09-28 17:15:28 +01:00
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-09-28 17:15:28 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-09-28 17:15:28 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-e494551758347fdb8d1c50eeee27e94d88cd616c-{{checksum ".buildcache/cache-keys/package-e494551758347fdb8d1c50eeee27e94d88cd616c"}}
2020-09-28 17:15:28 +01:00
name: Restore package cache
- run:
command: |2
2020-09-28 17:15:28 +01:00
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
2020-09-28 17:15:28 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-09-28 17:15:28 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-09-28 17:15:28 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-09-28 17:15:28 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-09-28 17:15:28 +01:00
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
2020-09-28 17:15:28 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-09-28 17:15:28 +01:00
- save_cache:
2020-10-09 22:02:21 +01:00
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-e494551758347fdb8d1c50eeee27e94d88cd616c-{{checksum ".buildcache/cache-keys/package-e494551758347fdb8d1c50eeee27e94d88cd616c"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: e494551758347fdb8d1c50eeee27e94d88cd616c
2020-10-09 22:02:21 +01:00
solaris_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-2aef0a14a997f7a4dafd68d6a0f0b8a080df89af-{{checksum ".buildcache/cache-keys/package-2aef0a14a997f7a4dafd68d6a0f0b8a080df89af"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-2aef0a14a997f7a4dafd68d6a0f0b8a080df89af-{{checksum ".buildcache/cache-keys/package-2aef0a14a997f7a4dafd68d6a0f0b8a080df89af"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 2aef0a14a997f7a4dafd68d6a0f0b8a080df89af
2020-10-09 22:02:21 +01:00
windows_386_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-10-09 22:02:21 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-588fb9fa9ca2840c8a13a201c24abccad52096d5-{{checksum ".buildcache/cache-keys/package-588fb9fa9ca2840c8a13a201c24abccad52096d5"}}
2020-10-09 22:02:21 +01:00
name: Restore package cache
- run:
command: |2
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-10-09 22:02:21 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-10-09 22:02:21 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-10-09 22:02:21 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-10-09 22:02:21 +01:00
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
2020-10-09 22:02:21 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-10-09 22:02:21 +01:00
- save_cache:
2020-09-28 17:15:28 +01:00
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-588fb9fa9ca2840c8a13a201c24abccad52096d5-{{checksum ".buildcache/cache-keys/package-588fb9fa9ca2840c8a13a201c24abccad52096d5"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: 588fb9fa9ca2840c8a13a201c24abccad52096d5
2020-09-28 17:15:28 +01:00
windows_amd64_package:
executor: builder
steps:
- setup_remote_docker:
version: 19.03.12
docker_layer_caching: false
2020-09-28 17:15:28 +01:00
- add_ssh_keys:
fingerprints:
2021-04-26 14:34:11 +01:00
- 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
2020-09-28 17:15:28 +01:00
- restore_cache:
2021-08-16 13:11:30 -07:00
key: package-d95b1d2bcc9cfdd3f8d1464361e0d0b0fa631725-{{checksum ".buildcache/cache-keys/package-d95b1d2bcc9cfdd3f8d1464361e0d0b0fa631725"}}
2020-09-28 17:15:28 +01:00
name: Restore package cache
- run:
command: |2
2020-09-28 17:15:28 +01:00
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
2020-09-28 17:15:28 +01:00
- restore_cache:
2021-08-16 13:57:47 -04:00
key: copy-source_869b_{{checksum ".buildcache/cache-keys/copy-source-869b67a2513a6ba3e9d2991876cfaed368594ba1"}}
2020-09-28 17:15:28 +01:00
keys:
2021-08-16 13:57:47 -04:00
- go-modules_daae_{{checksum ".buildcache/cache-keys/go-modules-daaedd9766787e3ce8f199fada1cb849024e6ca3"}}
- ui_8f7b_{{checksum ".buildcache/cache-keys/ui-8f7be629bbc1c7ec7af40fb527b15c30d590b13a"}}
- base_ec53_{{checksum ".buildcache/cache-keys/base-ec5342e30fcbfeb5947252a8ea679fb281052d16"}}
name: 'Restore Builder Image Cache: copy-source'
2020-09-28 17:15:28 +01:00
- run:
command: make -C packages*.lock load-builder-cache
2020-09-28 17:15:28 +01:00
name: Load whatever builder cache we have (if any) into the Docker daemon
no_output_timeout: 30m
- run:
command: |2-
2020-09-28 17:15:28 +01:00
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
2020-09-28 17:15:28 +01:00
- run:
command: ls -lahR .buildcache/packages
name: List packages
2020-09-28 17:15:28 +01:00
- save_cache:
paths:
- .buildcache/packages/store
2021-08-16 13:11:30 -07:00
key: package-d95b1d2bcc9cfdd3f8d1464361e0d0b0fa631725-{{checksum ".buildcache/cache-keys/package-d95b1d2bcc9cfdd3f8d1464361e0d0b0fa631725"}}
name: Save package cache
environment:
2021-08-16 13:11:30 -07:00
PACKAGE_SPEC_ID: d95b1d2bcc9cfdd3f8d1464361e0d0b0fa631725
workflows:
2021-08-16 13:11:30 -07:00
build-f2519eceffccb9ef:
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