Skip to content

Commit

Permalink
feat(ci): use job stages
Browse files Browse the repository at this point in the history
  • Loading branch information
h2non committed Jun 7, 2020
1 parent 6534793 commit 77fca06
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

stages:
- build
- test
- deploy

services:
Expand All @@ -22,17 +22,17 @@ env:
- LIBVIPS=8.8.4
- LIBVIPS=8.9.2

before_install:
- docker pull h2non/imaginary:latest || true

install:
- "true"

script:
- docker build --pull --cache-from h2non/imaginary:latest --build-arg GOLANG_VERSION="${GOLANG_VERSION%.x}" --build-arg LIBVIPS_VERSION="${LIBVIPS}" --build-arg IMAGINARY_VERSION="${IMAGINARY_VERSION#v}" --tag h2non/imaginary:${IMAGINARY_VERSION#v} .

jobs:
include:
# Build stage
- stage: build
before_install:
- docker pull h2non/imaginary:latest || true
install:
- "true"
script:
- docker build --pull --cache-from h2non/imaginary:latest --build-arg GOLANG_VERSION="${GOLANG_VERSION%.x}" --build-arg LIBVIPS_VERSION="${LIBVIPS}" --build-arg IMAGINARY_VERSION="${IMAGINARY_VERSION#v}" --tag h2non/imaginary:${IMAGINARY_VERSION#v} .

# Deploy stage
- stage: deploy
script:
Expand Down

0 comments on commit 77fca06

Please sign in to comment.