Skip to content

Commit

Permalink
Use docker instead of machine
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa committed Feb 5, 2019
1 parent 91d82e2 commit 4a2cde5
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ jobs:

# Same as "publishDocs" but will set an alias afterwards
"publishDocsWithAlias":
machine:
image: circleci/classic:latest
docker:
- image: alpine:3.9

steps:
- checkout
Expand All @@ -108,7 +108,14 @@ jobs:
key: gradle-cache-v0-{{ checksum "build.gradle.kts" }}-{{ checksum "gradle/wrapper/gradle-wrapper.properties" }}

# First install now
- run: npm install -g now
- run: apk update
- run: apk add wget
- run: wget -q https://github.com/zeit/now-cli/releases/download/13.1.3/now-alpine.gz
- run: apk add gunzip
- run: gunzip now-alpine.gz
- run: mv now-alpine /usr/local/bin/now

# Then publish it
- run: ./gradlew publishDocsToNow --zeitToken=$NOW_TOKEN createNowAlias --zeitToken=$NOW_TOKEN

workflows:
Expand Down

0 comments on commit 4a2cde5

Please sign in to comment.