This commit is contained in:
Flavio Barisi
2020-08-14 12:12:56 +02:00
parent a1def6ce21
commit 27012ad81c
+7 -2
View File
@@ -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}