mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-03 04:26:44 +00:00
53668647c8
* More work on the integration test * Correctly get supervisor IP * Use Fatal for test errors * test-integration working separate from run-supervisor * Use jenkins' JOB_NAME to identify and remove containers with their volumes * Document testing procedure * Document the assume-unchanged tip * Use /mnt/root for data path * Nicer secret assignment
17 lines
637 B
Bash
Executable File
17 lines
637 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Jenkins build steps
|
|
VERSION=$(git describe --always --abbrev=6)
|
|
ESCAPED_BRANCH_NAME=$(echo $sourceBranch | sed 's/[^a-z0-9A-Z_.-]/-/g')
|
|
|
|
# Try pulling the old build first for caching purposes.
|
|
docker pull resin/${ARCH}-supervisor:${ESCAPED_BRANCH_NAME} || docker pull resin/${ARCH}-supervisor:master || true
|
|
|
|
# Test the gosuper
|
|
make SUPERVISOR_VERSION=${VERSION} JOB_NAME=${JOB_NAME} test-gosuper
|
|
|
|
# Build the images
|
|
make SUPERVISOR_VERSION=${ESCAPED_BRANCH_NAME} ARCH=${ARCH} JOB_NAME=${JOB_NAME} DEPLOY_REGISTRY= deploy
|
|
make SUPERVISOR_VERSION=${VERSION} ARCH=${ARCH} JOB_NAME=${JOB_NAME} DEPLOY_REGISTRY= deploy
|