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

Commit 69a006f

Browse files
committed
ci script fix
1 parent 59f3b87 commit 69a006f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.ci/deploy.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@ set -e
44
NAME="envdb"
55
BRANCH="master"
66

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

1111
PREFIX="mephux/$NAME"
1212
RELEASE_PATH="release"
1313

1414
DEB="${NAME}_${OLD_VERSION}_amd64.deb"
15-
DEB386="${NAME}-${OLD_VERSION}_386.deb"
15+
DEB386="${NAME}_${OLD_VERSION}_386.deb"
1616

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

2020
if [ "$YANK_OLD_VERSIONS" = true ]; then
2121

22-
package_cloud yank $PREFIX/ubuntu/lucid $DEB
23-
package_cloud yank $PREFIX/ubuntu/hardy $DEB
24-
package_cloud yank $PREFIX/ubuntu/utopic $DEB
25-
package_cloud yank $PREFIX/ubuntu/precise $DEB
26-
package_cloud yank $PREFIX/ubuntu/trusty $DEB
22+
# package_cloud yank $PREFIX/ubuntu/lucid $DEB
23+
# package_cloud yank $PREFIX/ubuntu/hardy $DEB
24+
# package_cloud yank $PREFIX/ubuntu/utopic $DEB
25+
# package_cloud yank $PREFIX/ubuntu/precise $DEB
26+
# package_cloud yank $PREFIX/ubuntu/trusty $DEB
2727

2828
package_cloud yank $PREFIX/ubuntu/lucid $DEB386
2929
package_cloud yank $PREFIX/ubuntu/hardy $DEB386

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ gox:
6060
@rm -rf Godeps/_workspace/src/github.com/$(GITHUB_USER)/$(NAME)
6161

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

8382
setup:
8483
@$(ECHO) "$(OK_COLOR)==> Building Packages $(NAME)$(NO_COLOR)"
84+
@echo $(VERSION) > .Version
8585
@mkdir -p package/root/usr/bin
8686
@cp -R bin/$(NAME) package/root/usr/bin
8787
@mkdir -p release/

0 commit comments

Comments
 (0)