Skip to content

Commit

Permalink
Change CI to build on k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
romancin committed Sep 28, 2022
1 parent 4b087fb commit cecfa36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
FROM jlesage/baseimage-gui:alpine-3.12-glibc

# Define software versions.
ARG JAVAJRE_VERSION=8.312.07.1
ARG TMM_VERSION=3.1.16.1
ARG JAVAJRE_VERSION=8.342.07.4
ARG TMM_VERSION=3.1.17

# Define software download URLs.
ARG TMM_URL=https://release.tinymediamanager.org/v3/dist/tmm_${TMM_VERSION}_linux.tar.gz
Expand Down
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ podTemplate(label: 'github-docker-builder', cloud: 'kubernetes', serviceAccount:
node('github-docker-builder') {
stage('Cloning Git Repository') {
steps {
git url: 'https://github.com/romancin/tinymediamanager4-docker.git',
git url: 'https://github.com/romancin/tinymediamanager-docker.git',
branch: '$BRANCH_NAME'
}
}
Expand All @@ -29,7 +29,7 @@ podTemplate(label: 'github-docker-builder', cloud: 'kubernetes', serviceAccount:
def patch = gitbranch + '-' + version.trim()
}
sh """
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${gitbranch}-v4,push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${gitbranch}-v3,push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${major},push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${minor},push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${patch},push=true
Expand All @@ -52,7 +52,7 @@ podTemplate(label: 'github-docker-builder', cloud: 'kubernetes', serviceAccount:
def patch = gitbranch + '-' + version.trim()
}
sh """
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:latest-v4,push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:latest-v3,push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${major},push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${minor},push=true
buildctl build --frontend dockerfile.v0 --local context=. --local dockerfile=. --output type=image,name=${registry}:${patch},push=true
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.1.16
v3.1.17

0 comments on commit cecfa36

Please sign in to comment.