Files
docker-mods-uptime-kuma-tim…/.travis.yml
T
Flavio Barisi db7ba49d2c Flutter plugin
2020-08-13 11:35:14 +02:00

31 lines
792 B
YAML

os: linux
language: shell
branches:
only:
- code-server-flutter
services:
- docker
env:
global:
- DOCKERHUB="flavio20002/mods"
- BASEIMAGE="code-server"
- MODNAME="python3"
jobs:
include:
- stage: BuildImage
if: (NOT (type IN (pull_request)))
script:
# Build image
- docker build --no-cache -t ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}-${TRAVIS_COMMIT} .
- docker tag ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}-${TRAVIS_COMMIT} ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}
# Login to DockerHub
- 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}