Files
threshold/.circleci/config.yml
T

1499 lines
61 KiB
YAML
Generated

### ***
### WARNING: DO NOT manually EDIT or MERGE this file, it is generated by 'make ci-config'.
### INSTEAD: Edit or merge the source in config/ then run 'make ci-config'.
### ***
# Orb 'circleci/slack@3.4.2' resolved to 'circleci/slack@3.4.2'
version: 2
jobs:
bundle-releases:
docker:
- image: docker.mirror.hashicorp.services/circleci/buildpack-deps
shell: /usr/bin/env bash -euo pipefail -c
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-10772cee179f7cf24d436b4871611f33f418be03-{{checksum ".buildcache/cache-keys/package-10772cee179f7cf24d436b4871611f33f418be03"}}
name: Restore package cache
- restore_cache:
key: package-9876c067936c4a6e7050746442bf967f5b34926a-{{checksum ".buildcache/cache-keys/package-9876c067936c4a6e7050746442bf967f5b34926a"}}
name: Restore package cache
- restore_cache:
key: package-fe60e51692b8df5457a412125686c0a4cb8d50d3-{{checksum ".buildcache/cache-keys/package-fe60e51692b8df5457a412125686c0a4cb8d50d3"}}
name: Restore package cache
- restore_cache:
key: package-0ec9526bf2951e5ea564efa6c8915563126f778f-{{checksum ".buildcache/cache-keys/package-0ec9526bf2951e5ea564efa6c8915563126f778f"}}
name: Restore package cache
- restore_cache:
key: package-c4e03355f920a8f9a60a65119379b1e7a864ac76-{{checksum ".buildcache/cache-keys/package-c4e03355f920a8f9a60a65119379b1e7a864ac76"}}
name: Restore package cache
- restore_cache:
key: package-d7ad9779ef6992f46a90e4e7a5e4e2d536108efd-{{checksum ".buildcache/cache-keys/package-d7ad9779ef6992f46a90e4e7a5e4e2d536108efd"}}
name: Restore package cache
- restore_cache:
key: package-408bbdc66b20d1d08de037ad4ff9d0c4fe176dc4-{{checksum ".buildcache/cache-keys/package-408bbdc66b20d1d08de037ad4ff9d0c4fe176dc4"}}
name: Restore package cache
- restore_cache:
key: package-c8b63114e1968b9337ee1e5bc4022ac6ef8d6b4c-{{checksum ".buildcache/cache-keys/package-c8b63114e1968b9337ee1e5bc4022ac6ef8d6b4c"}}
name: Restore package cache
- restore_cache:
key: package-caf15737808905814215648d1451f0ce57deccef-{{checksum ".buildcache/cache-keys/package-caf15737808905814215648d1451f0ce57deccef"}}
name: Restore package cache
- restore_cache:
key: package-9a51c940a17ccc48a621b26696340c0c62596d04-{{checksum ".buildcache/cache-keys/package-9a51c940a17ccc48a621b26696340c0c62596d04"}}
name: Restore package cache
- restore_cache:
key: package-5604d6b56a3172cdd8c51cb2a2b0e2c1186651cc-{{checksum ".buildcache/cache-keys/package-5604d6b56a3172cdd8c51cb2a2b0e2c1186651cc"}}
name: Restore package cache
- restore_cache:
key: package-e9fb894e0a13fa34dbc853cb4efe80f705e39121-{{checksum ".buildcache/cache-keys/package-e9fb894e0a13fa34dbc853cb4efe80f705e39121"}}
name: Restore package cache
- restore_cache:
key: package-44e8c23e32da50c1292c2f9da669ddcd870a8458-{{checksum ".buildcache/cache-keys/package-44e8c23e32da50c1292c2f9da669ddcd870a8458"}}
name: Restore package cache
- restore_cache:
key: package-4686153fc25959d2c1347ae8d3598d973a7c8f24-{{checksum ".buildcache/cache-keys/package-4686153fc25959d2c1347ae8d3598d973a7c8f24"}}
name: Restore package cache
- restore_cache:
key: package-63bddd6e567cd1f0e36794384d02f9906815347c-{{checksum ".buildcache/cache-keys/package-63bddd6e567cd1f0e36794384d02f9906815347c"}}
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-75008e444f4ae973.yml
name: Update Lockfile Name
- run:
command: tar -czf packages-75008e444f4ae973.tar.gz .buildcache/packages lockfile-75008e444f4ae973.yml
name: Create Raw Package Tarball
- run:
command: tar -czf meta-75008e444f4ae973.tar.gz .buildcache/packages/store/*.json lockfile-75008e444f4ae973.yml
name: Create Metadata Tarball
- store_artifacts:
path: lockfile-75008e444f4ae973.yml
- store_artifacts:
path: packages-75008e444f4ae973.tar.gz
- store_artifacts:
path: meta-75008e444f4ae973.tar.gz
- store_artifacts:
path: .buildcache/packages
environment:
- AUTO_INSTALL_TOOLS: 'YES'
- BUILDKIT_PROGRESS: plain
- PRODUCT_REVISION: ''
darwin_amd64_package:
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: ''
- PACKAGE_SPEC_ID: 10772cee179f7cf24d436b4871611f33f418be03
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-10772cee179f7cf24d436b4871611f33f418be03-{{checksum ".buildcache/cache-keys/package-10772cee179f7cf24d436b4871611f33f418be03"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-10772cee179f7cf24d436b4871611f33f418be03-{{checksum ".buildcache/cache-keys/package-10772cee179f7cf24d436b4871611f33f418be03"}}
name: Save package cache
paths:
- .buildcache/packages/store
windows_386_package:
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: ''
- PACKAGE_SPEC_ID: 4686153fc25959d2c1347ae8d3598d973a7c8f24
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-4686153fc25959d2c1347ae8d3598d973a7c8f24-{{checksum ".buildcache/cache-keys/package-4686153fc25959d2c1347ae8d3598d973a7c8f24"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-4686153fc25959d2c1347ae8d3598d973a7c8f24-{{checksum ".buildcache/cache-keys/package-4686153fc25959d2c1347ae8d3598d973a7c8f24"}}
name: Save package cache
paths:
- .buildcache/packages/store
build-common-layers:
machine:
image: ubuntu-1604:202007-01
resource_class: xlarge
shell: /usr/bin/env bash -euo pipefail -c
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
name: 'Restore Layer Cache: copy-source'
- run:
command: LAYER_SPEC_ID=03-copy-source-2502be88fa57c1e224989891cf4652828c621660 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-b2f59b2d4223729e0cfca83f651ade1039b52e39-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-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90-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-c844ead2cbfb731dfe7dced10ca11cc787b64d5d-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-2502be88fa57c1e224989891cf4652828c621660-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-2502be88fa57c1e224989891cf4652828c621660-save
name: Build copy-source layer
- save_cache:
key: copy-source_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
name: 'Save Layer Cache: copy-source'
paths:
- .buildcache/archives/03-copy-source-2502be88fa57c1e224989891cf4652828c621660.tar.gz
environment:
- AUTO_INSTALL_TOOLS: 'YES'
- BUILDKIT_PROGRESS: plain
- PRODUCT_REVISION: ''
linux_arm64_package:
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: ''
- PACKAGE_SPEC_ID: c8b63114e1968b9337ee1e5bc4022ac6ef8d6b4c
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-c8b63114e1968b9337ee1e5bc4022ac6ef8d6b4c-{{checksum ".buildcache/cache-keys/package-c8b63114e1968b9337ee1e5bc4022ac6ef8d6b4c"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-c8b63114e1968b9337ee1e5bc4022ac6ef8d6b4c-{{checksum ".buildcache/cache-keys/package-c8b63114e1968b9337ee1e5bc4022ac6ef8d6b4c"}}
name: Save package cache
paths:
- .buildcache/packages/store
linux_arm_package:
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: ''
- PACKAGE_SPEC_ID: 408bbdc66b20d1d08de037ad4ff9d0c4fe176dc4
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-408bbdc66b20d1d08de037ad4ff9d0c4fe176dc4-{{checksum ".buildcache/cache-keys/package-408bbdc66b20d1d08de037ad4ff9d0c4fe176dc4"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-408bbdc66b20d1d08de037ad4ff9d0c4fe176dc4-{{checksum ".buildcache/cache-keys/package-408bbdc66b20d1d08de037ad4ff9d0c4fe176dc4"}}
name: Save package cache
paths:
- .buildcache/packages/store
linux_386_package:
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: ''
- PACKAGE_SPEC_ID: c4e03355f920a8f9a60a65119379b1e7a864ac76
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-c4e03355f920a8f9a60a65119379b1e7a864ac76-{{checksum ".buildcache/cache-keys/package-c4e03355f920a8f9a60a65119379b1e7a864ac76"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-c4e03355f920a8f9a60a65119379b1e7a864ac76-{{checksum ".buildcache/cache-keys/package-c4e03355f920a8f9a60a65119379b1e7a864ac76"}}
name: Save package cache
paths:
- .buildcache/packages/store
freebsd_386_package:
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: ''
- PACKAGE_SPEC_ID: 9876c067936c4a6e7050746442bf967f5b34926a
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-9876c067936c4a6e7050746442bf967f5b34926a-{{checksum ".buildcache/cache-keys/package-9876c067936c4a6e7050746442bf967f5b34926a"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-9876c067936c4a6e7050746442bf967f5b34926a-{{checksum ".buildcache/cache-keys/package-9876c067936c4a6e7050746442bf967f5b34926a"}}
name: Save package cache
paths:
- .buildcache/packages/store
freebsd_amd64_package:
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: ''
- PACKAGE_SPEC_ID: fe60e51692b8df5457a412125686c0a4cb8d50d3
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-fe60e51692b8df5457a412125686c0a4cb8d50d3-{{checksum ".buildcache/cache-keys/package-fe60e51692b8df5457a412125686c0a4cb8d50d3"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-fe60e51692b8df5457a412125686c0a4cb8d50d3-{{checksum ".buildcache/cache-keys/package-fe60e51692b8df5457a412125686c0a4cb8d50d3"}}
name: Save package cache
paths:
- .buildcache/packages/store
openbsd_386_package:
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: ''
- PACKAGE_SPEC_ID: 5604d6b56a3172cdd8c51cb2a2b0e2c1186651cc
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-5604d6b56a3172cdd8c51cb2a2b0e2c1186651cc-{{checksum ".buildcache/cache-keys/package-5604d6b56a3172cdd8c51cb2a2b0e2c1186651cc"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-5604d6b56a3172cdd8c51cb2a2b0e2c1186651cc-{{checksum ".buildcache/cache-keys/package-5604d6b56a3172cdd8c51cb2a2b0e2c1186651cc"}}
name: Save package cache
paths:
- .buildcache/packages/store
linux_amd64_package:
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: ''
- PACKAGE_SPEC_ID: d7ad9779ef6992f46a90e4e7a5e4e2d536108efd
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-d7ad9779ef6992f46a90e4e7a5e4e2d536108efd-{{checksum ".buildcache/cache-keys/package-d7ad9779ef6992f46a90e4e7a5e4e2d536108efd"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-d7ad9779ef6992f46a90e4e7a5e4e2d536108efd-{{checksum ".buildcache/cache-keys/package-d7ad9779ef6992f46a90e4e7a5e4e2d536108efd"}}
name: Save package cache
paths:
- .buildcache/packages/store
solaris_amd64_package:
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: ''
- PACKAGE_SPEC_ID: 44e8c23e32da50c1292c2f9da669ddcd870a8458
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-44e8c23e32da50c1292c2f9da669ddcd870a8458-{{checksum ".buildcache/cache-keys/package-44e8c23e32da50c1292c2f9da669ddcd870a8458"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-44e8c23e32da50c1292c2f9da669ddcd870a8458-{{checksum ".buildcache/cache-keys/package-44e8c23e32da50c1292c2f9da669ddcd870a8458"}}
name: Save package cache
paths:
- .buildcache/packages/store
build:
machine:
image: ubuntu-1604:201903-01
steps:
- add_ssh_keys:
fingerprints:
- c6:96:98:82:dc:04:6c:39:dd:ac:83:05:e3:15:1c:98
- checkout
- run:
command: |
make test-ci
name: Run Acceptance Tests
- run:
command: |
echo 'export SLACK_BUILD_STATUS="fail"' >> $BASH_ENV
name: Slack - Setting Failure Condition
when: on_fail
- run:
command: |
echo 'export SLACK_BUILD_STATUS="success"' >> $BASH_ENV
name: Slack - Setting Success Condition
when: on_success
- run:
command: |
if [ ! -x /bin/bash ]; then
echo Bash not installed.
exit 1
fi
name: Provide error if non-bash shell
- run:
command: |
current_branch_in_filter=false
IFS="," read -ra BRANCH_FILTERS <<< "master"
for i in "${BRANCH_FILTERS[@]}"; do
if [ "${i}" == "${CIRCLE_BRANCH}" ]; then
current_branch_in_filter=true
fi
done
if [ "x" == "xmaster" ] || [ "$current_branch_in_filter" = true ]; then
# Provide error if no webhook is set and error. Otherwise continue
if [ -z "webhook" ]; then
echo "NO SLACK WEBHOOK SET"
echo "Please input your SLACK_WEBHOOK value either in the settings for this project, or as a parameter for this orb."
exit 1
else
#Create Members string
if [ -n "" ]; then
IFS="," read -ra SLACK_MEMBERS <<< ""
for i in "${SLACK_MEMBERS[@]}"; do
if [ $(echo ${i} | head -c 1) == "S" ]; then
SLACK_MENTIONS="${SLACK_MENTIONS}<!subteam^${i}> "
elif echo ${i} | grep -E "^(here|channel|everyone)$" > /dev/null; then
SLACK_MENTIONS="${SLACK_MENTIONS}<!${i}> "
else
SLACK_MENTIONS="${SLACK_MENTIONS}<@${i}> "
fi
done
fi
#If successful
if [ "$SLACK_BUILD_STATUS" = "success" ]; then
#Skip if fail_only
if [ true = true ]; then
echo "The job completed successfully"
echo '"fail_only" is set to "true". No Slack notification sent.'
else
curl -X POST -H 'Content-type: application/json' \
--data "{ \
\"attachments\": [ \
{ \
\"fallback\": \":tada: A $CIRCLE_JOB job has succeeded!\", \
\"text\": \":tada: A $CIRCLE_JOB job has succeeded! $SLACK_MENTIONS\", \
\"fields\": [ \
{ \
\"title\": \"Project\", \
\"value\": \"$CIRCLE_PROJECT_REPONAME\", \
\"short\": true \
}, \
{ \
\"title\": \"Job Number\", \
\"value\": \"$CIRCLE_BUILD_NUM\", \
\"short\": true \
} \
], \
\"actions\": [ \
{ \
\"type\": \"button\", \
\"text\": \"Visit Job\", \
\"url\": \"$CIRCLE_BUILD_URL\" \
} \
], \
\"color\": \"#1CBF43\" \
} \
] \
} " webhook
echo "Job completed successfully. Alert sent."
fi
else
#If Failed
curl -X POST -H 'Content-type: application/json' \
--data "{ \
\"attachments\": [ \
{ \
\"fallback\": \":red_circle: A $CIRCLE_JOB job has failed!\", \
\"text\": \":red_circle: A $CIRCLE_JOB job has failed! $SLACK_MENTIONS\", \
\"fields\": [ \
{ \
\"title\": \"Project\", \
\"value\": \"$CIRCLE_PROJECT_REPONAME\", \
\"short\": true \
}, \
{ \
\"title\": \"Job Number\", \
\"value\": \"$CIRCLE_BUILD_NUM\", \
\"short\": true \
} \
], \
\"actions\": [ \
{ \
\"type\": \"button\", \
\"text\": \"Visit Job\", \
\"url\": \"$CIRCLE_BUILD_URL\" \
} \
], \
\"color\": \"#ed5c5c\" \
} \
] \
} " webhook
echo "Job failed. Alert sent."
fi
fi
else
echo "Current branch is not included in only_for_branches filter; no status alert will be sent"
fi
name: Slack - Sending Status Alert
shell: /bin/bash
when: always
working_directory: ~/boundary
netbsd_amd64_package:
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: ''
- PACKAGE_SPEC_ID: 9a51c940a17ccc48a621b26696340c0c62596d04
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-9a51c940a17ccc48a621b26696340c0c62596d04-{{checksum ".buildcache/cache-keys/package-9a51c940a17ccc48a621b26696340c0c62596d04"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-9a51c940a17ccc48a621b26696340c0c62596d04-{{checksum ".buildcache/cache-keys/package-9a51c940a17ccc48a621b26696340c0c62596d04"}}
name: Save package cache
paths:
- .buildcache/packages/store
openbsd_amd64_package:
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: ''
- PACKAGE_SPEC_ID: e9fb894e0a13fa34dbc853cb4efe80f705e39121
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-e9fb894e0a13fa34dbc853cb4efe80f705e39121-{{checksum ".buildcache/cache-keys/package-e9fb894e0a13fa34dbc853cb4efe80f705e39121"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-e9fb894e0a13fa34dbc853cb4efe80f705e39121-{{checksum ".buildcache/cache-keys/package-e9fb894e0a13fa34dbc853cb4efe80f705e39121"}}
name: Save package cache
paths:
- .buildcache/packages/store
netbsd_386_package:
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: ''
- PACKAGE_SPEC_ID: caf15737808905814215648d1451f0ce57deccef
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-caf15737808905814215648d1451f0ce57deccef-{{checksum ".buildcache/cache-keys/package-caf15737808905814215648d1451f0ce57deccef"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-caf15737808905814215648d1451f0ce57deccef-{{checksum ".buildcache/cache-keys/package-caf15737808905814215648d1451f0ce57deccef"}}
name: Save package cache
paths:
- .buildcache/packages/store
freebsd_arm_package:
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: ''
- PACKAGE_SPEC_ID: 0ec9526bf2951e5ea564efa6c8915563126f778f
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-0ec9526bf2951e5ea564efa6c8915563126f778f-{{checksum ".buildcache/cache-keys/package-0ec9526bf2951e5ea564efa6c8915563126f778f"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-0ec9526bf2951e5ea564efa6c8915563126f778f-{{checksum ".buildcache/cache-keys/package-0ec9526bf2951e5ea564efa6c8915563126f778f"}}
name: Save package cache
paths:
- .buildcache/packages/store
windows_amd64_package:
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: ''
- PACKAGE_SPEC_ID: 63bddd6e567cd1f0e36794384d02f9906815347c
steps:
- setup_remote_docker:
docker_layer_caching: false
version: 19.03.12
- 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-63bddd6e567cd1f0e36794384d02f9906815347c-{{checksum ".buildcache/cache-keys/package-63bddd6e567cd1f0e36794384d02f9906815347c"}}
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_2502_{{checksum ".buildcache/cache-keys/copy-source-2502be88fa57c1e224989891cf4652828c621660"}}
keys:
- go-modules_c844_{{checksum ".buildcache/cache-keys/go-modules-c844ead2cbfb731dfe7dced10ca11cc787b64d5d"}}
- ui_6ad3_{{checksum ".buildcache/cache-keys/ui-6ad3ab8079f57106f69bcb6b0e1c680630ac5b90"}}
- base_b2f5_{{checksum ".buildcache/cache-keys/base-b2f59b2d4223729e0cfca83f651ade1039b52e39"}}
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:
key: package-63bddd6e567cd1f0e36794384d02f9906815347c-{{checksum ".buildcache/cache-keys/package-63bddd6e567cd1f0e36794384d02f9906815347c"}}
name: Save package cache
paths:
- .buildcache/packages/store
workflows:
build-75008e444f4ae973:
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
default:
jobs:
- build
version: 2