This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated build script to only push if the commit is
tagged. Otherwise it should just test the build.
- Loading branch information
Nicolai Bjerre Pedersen
committed
Mar 8, 2018
1 parent
cf9bda9
commit 4e22a33
Showing
3 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
set -ev | ||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" | ||
|
||
if [ -z ${TRAVIS_TAG} ]; then | ||
echo "Untagged build found. Building to test." | ||
docker run -it --rm --privileged --name "${ADDON_NAME}" \ | ||
-v ~/.docker:/root/.docker \ | ||
-v "$(pwd)":/docker \ | ||
hassioaddons/build-env:latest \ | ||
--target "${ADDON_NAME}" \ | ||
--git \ | ||
--all \ | ||
--from "homeassistant/{arch}-base" \ | ||
--author "Nicolai Bjerre Pedersen <[email protected]>" \ | ||
--doc-url "${GITHUB_URL}" \ | ||
--image "fixated/${ADDON_NAME}-{arch}" | ||
else | ||
echo "New git tagged build found. Building to distribute." | ||
docker run -it --rm --privileged --name "${ADDON_NAME}" \ | ||
-v ~/.docker:/root/.docker \ | ||
-v "$(pwd)":/docker \ | ||
hassioaddons/build-env:latest \ | ||
--target "${ADDON_NAME}" \ | ||
--git \ | ||
--all \ | ||
--push \ | ||
--from "homeassistant/{arch}-base" \ | ||
--author "Nicolai Bjerre Pedersen <[email protected]>" \ | ||
--doc-url "${GITHUB_URL}" \ | ||
--image "fixated/${ADDON_NAME}-{arch}" | ||
fi |
This file was deleted.
Oops, something went wrong.