Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
ci script fix
Browse files Browse the repository at this point in the history
  • Loading branch information
djcas9 committed Apr 12, 2015
1 parent 59f3b87 commit 69a006f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ set -e
NAME="envdb"
BRANCH="master"

VERSION=$(cat ${NAME}.go | grep -oP "Version\s+?\=\s?\"\K.*?(?=\"$|$)")
VERSION=$(cat .Version)
OLD_VERSION="0.2.0"
YANK_OLD_VERSIONS=true

PREFIX="mephux/$NAME"
RELEASE_PATH="release"

DEB="${NAME}_${OLD_VERSION}_amd64.deb"
DEB386="${NAME}-${OLD_VERSION}_386.deb"
DEB386="${NAME}_${OLD_VERSION}_386.deb"

if [ "$DRONE_BRANCH" = "$BRANCH" ] && [ "$DRONE_PR" != "true" ]; then
echo "MASTER BRANCH: Deploying..."

if [ "$YANK_OLD_VERSIONS" = true ]; then

package_cloud yank $PREFIX/ubuntu/lucid $DEB
package_cloud yank $PREFIX/ubuntu/hardy $DEB
package_cloud yank $PREFIX/ubuntu/utopic $DEB
package_cloud yank $PREFIX/ubuntu/precise $DEB
package_cloud yank $PREFIX/ubuntu/trusty $DEB
# package_cloud yank $PREFIX/ubuntu/lucid $DEB
# package_cloud yank $PREFIX/ubuntu/hardy $DEB
# package_cloud yank $PREFIX/ubuntu/utopic $DEB
# package_cloud yank $PREFIX/ubuntu/precise $DEB
# package_cloud yank $PREFIX/ubuntu/trusty $DEB

package_cloud yank $PREFIX/ubuntu/lucid $DEB386
package_cloud yank $PREFIX/ubuntu/hardy $DEB386
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ gox:
@rm -rf Godeps/_workspace/src/github.com/$(GITHUB_USER)/$(NAME)

release: clean all test gox setup package
@echo $(VERSION) > .Version
@for os in $(CCOS); do \
for arch in $(CCARCH); do \
cd pkg/$$os-$$arch/; \
Expand All @@ -82,6 +81,7 @@ clean:

setup:
@$(ECHO) "$(OK_COLOR)==> Building Packages $(NAME)$(NO_COLOR)"
@echo $(VERSION) > .Version
@mkdir -p package/root/usr/bin
@cp -R bin/$(NAME) package/root/usr/bin
@mkdir -p release/
Expand Down

0 comments on commit 69a006f

Please sign in to comment.