Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gitlab-ci-templates
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
infra
gitlab-ci-templates
Commits
9bb9d579
Commit
9bb9d579
authored
Aug 21, 2019
by
Kevin Daudt
💻
Browse files
Options
Browse Files
Download
Plain Diff
merge: docker-image: add support for x86
See merge request
!3
parents
8b902377
df8921f2
Pipeline
#180
passed with stage
in 23 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
docker-image.yml
docker-image.yml
+29
-0
No files found.
docker-image.yml
View file @
9bb9d579
...
...
@@ -10,6 +10,11 @@ stages:
script
:
-
docker build -t $CI_PROJECT_NAME:latest-$ARCH .
.build_with_arch
:
stage
:
build
script
:
-
docker build --build-arg ARCH=$DOCKER_ARCH/ -t $CI_PROJECT_NAME:latest-$ARCH .
build-s390x
:
extends
:
.build
variables
:
...
...
@@ -26,6 +31,18 @@ build-x86_64:
-
docker-alpine
-
x86_64
build-x86
:
extends
:
.build_with_arch
image
:
name
:
alpinelinux/docker-cli:latest-x86
entrypoint
:
[
"
linux32"
,
"
sh"
,
"
-c"
]
variables
:
ARCH
:
x86
DOCKER_ARCH
:
i386
tags
:
-
docker-alpine
-
x86
.upload
:
stage
:
upload
only
:
...
...
@@ -59,6 +76,16 @@ upload-x86_64:
-
docker-alpine
-
x86_64
upload-x86
:
extends
:
.build
image
:
alpinelinux/docker-cli:latest-x86
extends
:
.upload
variables
:
ARCH
:
x86
tags
:
-
docker-alpine
-
x86
create-manifest
:
stage
:
manifest
variables
:
...
...
@@ -76,10 +103,12 @@ create-manifest:
$DOCKER_NAMESPACE/$CI_PROJECT_NAME:latest-
s390x
x86_64
x86
-
>
if [ -n "$CI_COMMIT_TAG" ]; then
docker-push-manifest $DOCKER_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_TAG
$DOCKER_NAMESPACE/$CI_PROJECT_NAME:$CI_COMMIT_TAG-
s390x
x86_64;
x86
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment