From 27012ad81c1c9c51607fe77ad1f2301ea160a693 Mon Sep 17 00:00:00 2001 From: Flavio Barisi Date: Fri, 14 Aug 2020 12:12:56 +0200 Subject: [PATCH] Fix --- .travis.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a7bcd1a..1b18b4c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,12 +11,17 @@ services: env: global: - - DOCKERHUB="flavio20002/mods" + - DOCKERHUB="linuxserver/mods" - BASEIMAGE="code-server" - MODNAME="flutter" jobs: include: + - stage: PR-BuildImage + if: (type IN (pull_request)) + script: + # Build image + - docker build --no-cache -t ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}-${TRAVIS_COMMIT} . - stage: BuildImage if: (NOT (type IN (pull_request))) script: @@ -27,4 +32,4 @@ jobs: - echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin # Push all of the tags - docker push ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}-${TRAVIS_COMMIT} - - docker push ${DOCKERHUB}:${BASEIMAGE}-${MODNAME} + - docker push ${DOCKERHUB}:${BASEIMAGE}-${MODNAME} \ No newline at end of file