Skip to content

Commit

Permalink
Fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Apr 28, 2020
1 parent 3cffcb9 commit fbce436
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ case "$1" in
;;

deploy)
if [[ "$TEST_MODE" = "local" ]]; then
make deploy
fi
make deploy
;;

install)
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ deploy:
on: # yamllint disable rule:truthy
repo: ascoderu/opwen-cloudserver
tags: true
condition: $TEST_MODE = local

- provider: pages
skip-cleanup: true
Expand All @@ -51,3 +52,4 @@ deploy:
on: # yamllint disable rule:truthy
repo: ascoderu/opwen-cloudserver
tags: true
condition: $TEST_MODE = local
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ services:
- webapp

statuspage:
image: ${DOCKER_REPO}/opwenstatuspage:${BUILD_TAG}
build:
context: .
dockerfile: docker/statuspage/Dockerfile
Expand Down
4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ release-docker:
) done

release-gh-pages:
docker cp "$(shell docker-compose images statuspage | grep statuspage | cut -f1 -d' '):/app/opwen-statuspage" ./build
docker container create --name statuspage "$(DOCKER_USERNAME)/opwenstatuspage:$(DOCKER_TAG)" && \
docker cp "statuspage:/app/opwen-statuspage" ./build && \
docker container rm statuspage

release: release-docker release-gh-pages

Expand Down

0 comments on commit fbce436

Please sign in to comment.