mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-20 02:13:07 -04:00
radarr: striptracks initial release
mkvtoolnix
This commit is contained in:
+27
-5
@@ -4,7 +4,7 @@ language: shell
|
||||
|
||||
branches:
|
||||
only:
|
||||
- <baseimagename>-<modname> #replace variables, omit brackets
|
||||
- radarr-striptracks #replace variables, omit brackets
|
||||
|
||||
services:
|
||||
- docker
|
||||
@@ -12,21 +12,43 @@ services:
|
||||
env:
|
||||
global:
|
||||
- DOCKERHUB="linuxserver/mods" #don't modify
|
||||
- BASEIMAGE="baseimagename" #replace
|
||||
- MODNAME="modname" #replace
|
||||
- BASEIMAGE="radarr" #replace
|
||||
- MODNAME="striptracks" #replace
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- stage: PR-BuildImage
|
||||
if: (type IN (pull_request))
|
||||
script:
|
||||
# Build variables
|
||||
- VERSION=$(git describe --tags --always)
|
||||
- VCS_REF=$(git rev-parse --short HEAD)
|
||||
- BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
# Build image
|
||||
- docker build --no-cache -t ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}-${TRAVIS_COMMIT} .
|
||||
- docker build --no-cache
|
||||
--build-arg VERSION=${VERSION}
|
||||
--build-arg VCS_REF=${VCS_REF}
|
||||
--build-arg BUILD_DATE=${BUILD_DATE}
|
||||
--build-arg DOCKERHUB=${DOCKERHUB}
|
||||
--build-arg BASEIMAGE=${BASEIMAGE}
|
||||
--build-arg MODNAME=${MODNAME}
|
||||
-t ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}-${TRAVIS_COMMIT} .
|
||||
- stage: BuildImage
|
||||
if: (NOT (type IN (pull_request)))
|
||||
script:
|
||||
# Build variables
|
||||
- VERSION=$(git describe --tags --always)
|
||||
- VCS_REF=$(git rev-parse --short HEAD)
|
||||
- BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
# Build image
|
||||
- docker build --no-cache -t ${DOCKERHUB}:${BASEIMAGE}-${MODNAME}-${TRAVIS_COMMIT} .
|
||||
- docker build --no-cache
|
||||
--build-arg VERSION=${VERSION}
|
||||
--build-arg VCS_REF=${VCS_REF}
|
||||
--build-arg BUILD_DATE=${BUILD_DATE}
|
||||
--build-arg DOCKERHUB=${DOCKERHUB}
|
||||
--build-arg BASEIMAGE=${BASEIMAGE}
|
||||
--build-arg MODNAME=${MODNAME}
|
||||
-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
|
||||
|
||||
Reference in New Issue
Block a user