Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker-baseimage-ubuntu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Prosper
docker-baseimage-ubuntu
Commits
33fd89e6
Commit
33fd89e6
authored
4 years ago
by
LinuxServer-CI
Browse files
Options
Downloads
Patches
Plain Diff
Bot Updating Templated Files
parent
d25dc710
No related branches found
Tags
6c0ac1e7-ls43
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+16
-35
16 additions, 35 deletions
Jenkinsfile
with
16 additions
and
35 deletions
Jenkinsfile
+
16
−
35
View file @
33fd89e6
...
@@ -126,7 +126,6 @@ pipeline {
...
@@ -126,7 +126,6 @@ pipeline {
steps
{
steps
{
script
{
script
{
env
.
IMAGE
=
env
.
DOCKERHUB_IMAGE
env
.
IMAGE
=
env
.
DOCKERHUB_IMAGE
env
.
QUAYIMAGE
=
'quay.io/linuxserver.io/'
+
env
.
CONTAINER_NAME
env
.
GITHUBIMAGE
=
'docker.pkg.github.com/'
+
env
.
LS_USER
+
'/'
+
env
.
LS_REPO
+
'/'
+
env
.
CONTAINER_NAME
env
.
GITHUBIMAGE
=
'docker.pkg.github.com/'
+
env
.
LS_USER
+
'/'
+
env
.
LS_REPO
+
'/'
+
env
.
CONTAINER_NAME
env
.
GITLABIMAGE
=
'registry.gitlab.com/linuxserver.io/'
+
env
.
LS_REPO
+
'/'
+
env
.
CONTAINER_NAME
env
.
GITLABIMAGE
=
'registry.gitlab.com/linuxserver.io/'
+
env
.
LS_REPO
+
'/'
+
env
.
CONTAINER_NAME
if
(
env
.
MULTIARCH
==
'true'
)
{
if
(
env
.
MULTIARCH
==
'true'
)
{
...
@@ -147,7 +146,6 @@ pipeline {
...
@@ -147,7 +146,6 @@ pipeline {
steps
{
steps
{
script
{
script
{
env
.
IMAGE
=
env
.
DEV_DOCKERHUB_IMAGE
env
.
IMAGE
=
env
.
DEV_DOCKERHUB_IMAGE
env
.
QUAYIMAGE
=
'quay.io/linuxserver.io/lsiodev-'
+
env
.
CONTAINER_NAME
env
.
GITHUBIMAGE
=
'docker.pkg.github.com/'
+
env
.
LS_USER
+
'/'
+
env
.
LS_REPO
+
'/lsiodev-'
+
env
.
CONTAINER_NAME
env
.
GITHUBIMAGE
=
'docker.pkg.github.com/'
+
env
.
LS_USER
+
'/'
+
env
.
LS_REPO
+
'/lsiodev-'
+
env
.
CONTAINER_NAME
env
.
GITLABIMAGE
=
'registry.gitlab.com/linuxserver.io/'
+
env
.
LS_REPO
+
'/lsiodev-'
+
env
.
CONTAINER_NAME
env
.
GITLABIMAGE
=
'registry.gitlab.com/linuxserver.io/'
+
env
.
LS_REPO
+
'/lsiodev-'
+
env
.
CONTAINER_NAME
if
(
env
.
MULTIARCH
==
'true'
)
{
if
(
env
.
MULTIARCH
==
'true'
)
{
...
@@ -168,7 +166,6 @@ pipeline {
...
@@ -168,7 +166,6 @@ pipeline {
steps
{
steps
{
script
{
script
{
env
.
IMAGE
=
env
.
PR_DOCKERHUB_IMAGE
env
.
IMAGE
=
env
.
PR_DOCKERHUB_IMAGE
env
.
QUAYIMAGE
=
'quay.io/linuxserver.io/lspipepr-'
+
env
.
CONTAINER_NAME
env
.
GITHUBIMAGE
=
'docker.pkg.github.com/'
+
env
.
LS_USER
+
'/'
+
env
.
LS_REPO
+
'/lspipepr-'
+
env
.
CONTAINER_NAME
env
.
GITHUBIMAGE
=
'docker.pkg.github.com/'
+
env
.
LS_USER
+
'/'
+
env
.
LS_REPO
+
'/lspipepr-'
+
env
.
CONTAINER_NAME
env
.
GITLABIMAGE
=
'registry.gitlab.com/linuxserver.io/'
+
env
.
LS_REPO
+
'/lspipepr-'
+
env
.
CONTAINER_NAME
env
.
GITLABIMAGE
=
'registry.gitlab.com/linuxserver.io/'
+
env
.
LS_REPO
+
'/lspipepr-'
+
env
.
CONTAINER_NAME
if
(
env
.
MULTIARCH
==
'true'
)
{
if
(
env
.
MULTIARCH
==
'true'
)
{
...
@@ -533,22 +530,15 @@ pipeline {
...
@@ -533,22 +530,15 @@ pipeline {
credentialsId:
'3f9ba4d5-100d-45b0-a3c4-633fd6061207'
,
credentialsId:
'3f9ba4d5-100d-45b0-a3c4-633fd6061207'
,
usernameVariable:
'DOCKERUSER'
,
usernameVariable:
'DOCKERUSER'
,
passwordVariable:
'DOCKERPASS'
passwordVariable:
'DOCKERPASS'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
'Quay.io-Robot'
,
usernameVariable:
'QUAYUSER'
,
passwordVariable:
'QUAYPASS'
]
]
])
{
])
{
retry
(
5
)
{
retry
(
5
)
{
sh
'''#! /bin/bash
sh
'''#! /bin/bash
set -e
set -e
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
echo $GITHUB_TOKEN | docker login docker.pkg.github.com -u LinuxServer-CI --password-stdin
echo $GITHUB_TOKEN | docker login docker.pkg.github.com -u LinuxServer-CI --password-stdin
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
for PUSHIMAGE in
"${QUAYIMAGE}"
"${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
for PUSHIMAGE in "${GITHUBIMAGE}" "${GITLABIMAGE}" "${IMAGE}"; do
docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG}
docker tag ${IMAGE}:${META_TAG} ${PUSHIMAGE}:${META_TAG}
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:xenial
docker tag ${PUSHIMAGE}:${META_TAG} ${PUSHIMAGE}:xenial
docker push ${PUSHIMAGE}:xenial
docker push ${PUSHIMAGE}:xenial
...
@@ -557,7 +547,7 @@ pipeline {
...
@@ -557,7 +547,7 @@ pipeline {
'''
'''
}
}
sh
'''#! /bin/bash
sh
'''#! /bin/bash
for DELETEIMAGE in
"${QUAYIMAGE}"
"${GITHUBIMAGE}" "{GITLABIMAGE}" "${IMAGE}"; do
for DELETEIMAGE in "${GITHUBIMAGE}" "{GITLABIMAGE}" "${IMAGE}"; do
docker rmi \
docker rmi \
${DELETEIMAGE}:${META_TAG} \
${DELETEIMAGE}:${META_TAG} \
${DELETEIMAGE}:xenial || :
${DELETEIMAGE}:xenial || :
...
@@ -579,18 +569,11 @@ pipeline {
...
@@ -579,18 +569,11 @@ pipeline {
credentialsId:
'3f9ba4d5-100d-45b0-a3c4-633fd6061207'
,
credentialsId:
'3f9ba4d5-100d-45b0-a3c4-633fd6061207'
,
usernameVariable:
'DOCKERUSER'
,
usernameVariable:
'DOCKERUSER'
,
passwordVariable:
'DOCKERPASS'
passwordVariable:
'DOCKERPASS'
],
[
$class
:
'UsernamePasswordMultiBinding'
,
credentialsId:
'Quay.io-Robot'
,
usernameVariable:
'QUAYUSER'
,
passwordVariable:
'QUAYPASS'
]
]
])
{
])
{
retry
(
5
)
{
retry
(
5
)
{
sh
'''#! /bin/bash
sh
'''#! /bin/bash
set -e
set -e
echo $QUAYPASS | docker login quay.io -u $QUAYUSER --password-stdin
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
echo $DOCKERPASS | docker login -u $DOCKERUSER --password-stdin
echo $GITHUB_TOKEN | docker login docker.pkg.github.com -u LinuxServer-CI --password-stdin
echo $GITHUB_TOKEN | docker login docker.pkg.github.com -u LinuxServer-CI --password-stdin
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
echo $GITLAB_TOKEN | docker login registry.gitlab.com -u LinuxServer.io --password-stdin
...
@@ -624,22 +607,20 @@ pipeline {
...
@@ -624,22 +607,20 @@ pipeline {
docker manifest push --purge ${MANIFESTIMAGE}:xenial
docker manifest push --purge ${MANIFESTIMAGE}:xenial
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
docker manifest push --purge ${MANIFESTIMAGE}:${META_TAG}
done
done
for LEGACYIMAGE in "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
docker tag ${IMAGE}:amd64-${META_TAG} ${GITHUBIMAGE}:amd64-${META_TAG}
docker tag ${IMAGE}:amd64-${META_TAG} ${LEGACYIMAGE}:amd64-${META_TAG}
docker tag ${IMAGE}:arm32v7-${META_TAG} ${GITHUBIMAGE}:arm32v7-${META_TAG}
docker tag ${IMAGE}:arm32v7-${META_TAG} ${LEGACYIMAGE}:arm32v7-${META_TAG}
docker tag ${IMAGE}:arm64v8-${META_TAG} ${GITHUBIMAGE}:arm64v8-${META_TAG}
docker tag ${IMAGE}:arm64v8-${META_TAG} ${LEGACYIMAGE}:arm64v8-${META_TAG}
docker tag ${GITHUBIMAGE}:amd64-${META_TAG} ${GITHUBIMAGE}:xenial
docker tag ${LEGACYIMAGE}:amd64-${META_TAG} ${LEGACYIMAGE}:xenial
docker tag ${GITHUBIMAGE}:amd64-${META_TAG} ${GITHUBIMAGE}:${META_TAG}
docker tag ${LEGACYIMAGE}:amd64-${META_TAG} ${LEGACYIMAGE}:${META_TAG}
docker tag ${GITHUBIMAGE}:arm32v7-${META_TAG} ${GITHUBIMAGE}:arm32v7-xenial
docker tag ${LEGACYIMAGE}:arm32v7-${META_TAG} ${LEGACYIMAGE}:arm32v7-xenial
docker tag ${GITHUBIMAGE}:arm64v8-${META_TAG} ${GITHUBIMAGE}:arm64v8-xenial
docker tag ${LEGACYIMAGE}:arm64v8-${META_TAG} ${LEGACYIMAGE}:arm64v8-xenial
docker push ${GITHUBIMAGE}:amd64-${META_TAG}
docker push ${LEGACYIMAGE}:amd64-${META_TAG}
docker push ${GITHUBIMAGE}:arm32v7-${META_TAG}
docker push ${LEGACYIMAGE}:arm32v7-${META_TAG}
docker push ${GITHUBIMAGE}:arm64v8-${META_TAG}
docker push ${LEGACYIMAGE}:arm64v8-${META_TAG}
docker push ${GITHUBIMAGE}:xenial
docker push ${LEGACYIMAGE}:xenial
docker push ${GITHUBIMAGE}:${META_TAG}
docker push ${LEGACYIMAGE}:${META_TAG}
docker push ${GITHUBIMAGE}:arm32v7-xenial
docker push ${LEGACYIMAGE}:arm32v7-xenial
docker push ${GITHUBIMAGE}:arm64v8-xenial
docker push ${LEGACYIMAGE}:arm64v8-xenial
done
'''
'''
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment