Skip to content

Commit

Permalink
Merge pull request fibercrypto#110 from simelo/stdevHan_fix_release_d…
Browse files Browse the repository at this point in the history
…uplication

Fixing release duplication in 0.26.0
  • Loading branch information
stdevMac authored Nov 15, 2019
2 parents 8d29cb3 + 80cc9e3 commit e895883
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 17 deletions.
52 changes: 40 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
orangepi-plus2:
docker:
- image: circleci/golang:1.12
working_directory: $GOPATH/src/github.com/skycoin/libskycoin
working_directory: $GOPATH/src/github.com/fibercrypto/libskycoin
environment:
QEMU_PLATFORM: orangepi-plus2

Expand All @@ -13,12 +13,12 @@ jobs:
- setup_remote_docker:
version: 18.06.0-ce
docker_layer_caching: true
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-test
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/fibercrypto/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/fibercrypto/libskycoin -t skydev-test

raspberrypi3:
docker:
- image: circleci/golang:1.12
working_directory: $GOPATH/src/github.com/skycoin/libskycoin
working_directory: $GOPATH/src/github.com/fibercrypto/libskycoin
environment:
QEMU_PLATFORM: raspberrypi3

Expand All @@ -28,12 +28,12 @@ jobs:
- setup_remote_docker:
version: 18.06.0-ce
docker_layer_caching: true
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-test
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/fibercrypto/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/fibercrypto/libskycoin -t skydev-test

raspberrypi2:
docker:
- image: circleci/golang:1.12
working_directory: $GOPATH/src/github.com/skycoin/libskycoin
working_directory: $GOPATH/src/github.com/fibercrypto/libskycoin
environment:
QEMU_PLATFORM: raspberry-pi2

Expand All @@ -43,12 +43,12 @@ jobs:
- setup_remote_docker:
version: 18.06.0-ce
docker_layer_caching: true
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-test
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/fibercrypto/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/fibercrypto/libskycoin -t skydev-test

bananapi_m1_plus:
docker:
- image: circleci/golang:1.12
working_directory: $GOPATH/src/github.com/skycoin/libskycoin
working_directory: $GOPATH/src/github.com/fibercrypto/libskycoin
environment:
QEMU_PLATFORM: bananapi-m1-plus

Expand All @@ -58,19 +58,35 @@ jobs:
- setup_remote_docker:
version: 18.06.0-ce
docker_layer_caching: true
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-test
- run: docker build --build-arg QEMU_PLATFORM --build-arg QEMU_OS=debian --file $GOPATH/src/github.com/fibercrypto/libskycoin/docker/images/test-arm/Dockerfile $GOPATH/src/github.com/fibercrypto/libskycoin -t skydev-test

publish-github-release_32:
deploy_arm_armv7:
docker:
- image: circleci/golang:1.12
working_directory: $GOPATH/src/github.com/skycoin/libskycoin
working_directory: $GOPATH/src/github.com/fibercrypto/libskycoin
environment:
QEMU_PLATFORM: armv7hf
steps:
- run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin
- checkout
- setup_remote_docker:
version: 18.06.0-ce
docker_layer_caching: true
- run: cd $GOPATH/src/github.com/fibercrypto/libskycoin/ci-scripts && bash deploy-arm.sh

deploy_arm_armv8:
docker:
- image: circleci/golang:1.12
working_directory: $GOPATH/src/github.com/fibercrypto/libskycoin
environment:
QEMU_PLATFORM: aarch64
steps:
- run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin
- checkout
- setup_remote_docker:
version: 18.06.0-ce
docker_layer_caching: true
- run: cd $GOPATH/src/github.com/skycoin/libskycoin/ci-scripts && bash deploy-arm.sh
- run: cd $GOPATH/src/github.com/fibercrypto/libskycoin/ci-scripts && bash deploy-arm.sh

workflows:
version: 2
Expand All @@ -80,4 +96,16 @@ workflows:
- orangepi-plus2
- raspberrypi2
- bananapi_m1_plus
- publish-github-release_32
- hold:
type: approval
requires:
- raspberrypi3
- orangepi-plus2
- raspberrypi2
- bananapi_m1_plus
- deploy_arm_armv7:
requires:
- hold
- deploy_arm_armv8:
requires:
- hold
2 changes: 1 addition & 1 deletion ci-scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
echo "Init"
make -C $GOPATH/src/github.com/skycoin/libskycoin build-libc
make -C $GOPATH/src/github.com/fibercrypto/libskycoin build-libc
5 changes: 3 additions & 2 deletions ci-scripts/deploy-arm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ git --version

export VERSION="$(git describe --tags --exact-match HEAD)"

echo $QEMU_PLATFORM

if [[ "$VERSION" ]]; then
docker build --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg QEMU_PLATFORM=armv7hf --build-arg VERSION --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/deploy-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-deploy
docker build --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg QEMU_PLATFORM=aarch64 --build-arg VERSION --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/deploy-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-deploy
docker build --build-arg SHA1=$CIRCLE_SHA1 --build-arg GITHUB_OAUTH_TOKEN --build-arg PROJECT_USERNAME=$CIRCLE_PROJECT_USERNAME --build-arg PROJECT_REPONAME=$CIRCLE_PROJECT_REPONAME --build-arg QEMU_PLATFORM --build-arg VERSION --file $GOPATH/src/github.com/fibercrypto/libskycoin/docker/images/deploy-arm/Dockerfile $GOPATH/src/github.com/fibercrypto/libskycoin -t skydev-deploy
fi
2 changes: 1 addition & 1 deletion docker/images/deploy-arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ ENV OS="Linux"
RUN make -C $GOPATH/src/github.com/fibercrypto/libskycoin build
RUN tar -czf libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz -C $GOPATH/src/github.com/fibercrypto/libskycoin/build $GOPATH/src/github.com/fibercrypto/libskycoin/build/*
RUN go get github.com/tcnksm/ghr
RUN ghr -t ${GITHUB_OAUTH_TOKEN} -u ${PROJECT_USERNAME} -r ${PROJECT_REPONAME} -c ${SHA1} -replace -draft ${VERSION} libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz
RUN ghr -t ${GITHUB_OAUTH_TOKEN} -u ${PROJECT_USERNAME} -r ${PROJECT_REPONAME} -c ${SHA1} -replace -draft -n "libskycoin ${VERSION}" ${VERSION} libskycoin-${VERSION}-${OS}-${ARCH}.tar.gz

RUN [ "cross-build-end" ]
2 changes: 1 addition & 1 deletion vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,5 @@
"revisionTime": "2019-03-03T16:38:25Z"
}
],
"rootPath": "github.com/skycoin/libskycoin"
"rootPath": "github.com/fibercrypto/libskycoin"
}

0 comments on commit e895883

Please sign in to comment.