Skip to content

Commit

Permalink
[circle][docker-deploy] refs skycoin#75 Change env the deploy and VER…
Browse files Browse the repository at this point in the history
…SION="$(git tag -l --points-at HEAD)"
  • Loading branch information
Maykel Arias Torres committed Jun 13, 2019
1 parent 345bd28 commit 6da7950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ jobs:
- image: docker:18.06.0-ce-git
working_directory: $GOPATH/src/github.com/skycoin/libskycoin
environment:
TAG: $(git tag -l --points-at HEAD)
TAG_DEPLOY: $(git tag -l --points-at HEAD)
steps:
- run: mkdir -p $GOPATH/src/github.com/ $GOPATH/src/github.com/skycoin
- run: echo $TAG_DEPLOY
- checkout
- setup_remote_docker:
version: 18.06.0-ce
- run: if [[ $TAG ]]; 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=raspberrypi3 --build-arg VERSION --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/deploy-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-deploy ; fi
- run: if [[ $TAG_DEPLOY ]]; 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=raspberrypi3 --build-arg VERSION --file $GOPATH/src/github.com/skycoin/libskycoin/docker/images/deploy-arm/Dockerfile $GOPATH/src/github.com/skycoin/libskycoin -t skydev-deploy ; fi

workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion docker/images/deploy-arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN make -C $GOPATH/src/github.com/skycoin/libskycoin install-deps-skyapi-Linux
RUN go get github.com/gz-c/gox
RUN go get -t ./...
ENV CGO_ENABLED=1
RUN export VERSION="$(git describe --tags --exact-match HEAD 2> /dev/null)"
RUN export VERSION="$(git tag -l --points-at HEAD)"
RUN export ARCH="$(uname -m)"
RUN export OS="$(uname -s)"
RUN make -C $GOPATH/src/github.com/skycoin/libskycoin build
Expand Down

0 comments on commit 6da7950

Please sign in to comment.