mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-29 11:42:55 -04:00
36 lines
975 B
YAML
36 lines
975 B
YAML
os: linux
|
|
|
|
language: shell
|
|
|
|
branches:
|
|
only:
|
|
- code-server-zsh
|
|
|
|
services:
|
|
- docker
|
|
|
|
env:
|
|
global:
|
|
- DOCKERHUB="linuxserver/mods"
|
|
- BASEIMAGE="code-server"
|
|
- MODNAME="zsh"
|
|
|
|
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:
|
|
# 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}
|