Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
fda74a69
Commit
fda74a69
authored
Mar 01, 2023
by
Joshua Gutow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi-arch for release builds
parent
715d17db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
config.yml
.circleci/config.yml
+15
-13
No files found.
.circleci/config.yml
View file @
fda74a69
...
@@ -225,6 +225,10 @@ jobs:
...
@@ -225,6 +225,10 @@ jobs:
description
:
Docker repo
description
:
Docker repo
type
:
string
type
:
string
default
:
"
oplabs-tools-artifacts/images"
default
:
"
oplabs-tools-artifacts/images"
platforms
:
description
:
Platforms to build for
type
:
string
default
:
"
linux/amd64"
machine
:
machine
:
image
:
ubuntu-2204:2022.07.1
image
:
ubuntu-2204:2022.07.1
resource_class
:
xlarge
resource_class
:
xlarge
...
@@ -232,26 +236,21 @@ jobs:
...
@@ -232,26 +236,21 @@ jobs:
-
gcp-cli/install
-
gcp-cli/install
-
gcp-oidc-authenticate
-
gcp-oidc-authenticate
-
checkout
-
checkout
-
run
:
name
:
Build
command
:
|
IMAGE_BASE="<<parameters.registry>>/<<parameters.repo>>/<<parameters.docker_name>>"
DOCKER_TAGS=$(echo -ne <<parameters.docker_tags>> | sed "s/,/\n/g" | sed "s/[^a-zA-Z0-9\n]/-/g" | sed -e "s|^|-t ${IMAGE_BASE}:|")
docker build \
$(echo -ne $DOCKER_TAGS | tr '\n' ' ') \
-f <<parameters.docker_file>> \
--build-arg VERSION=$CIRCLE_TAG \
<<parameters.docker_context>>
-
run
:
-
run
:
name
:
Configure Docker
name
:
Configure Docker
command
:
|
command
:
|
gcloud auth configure-docker <<parameters.registry>>
gcloud auth configure-docker <<parameters.registry>>
-
run
:
-
run
:
name
:
Publish
name
:
Build &
Publish
command
:
|
command
:
|
IMAGE_BASE="<<parameters.registry>>/<<parameters.repo>>/<<parameters.docker_name>>"
IMAGE_BASE="<<parameters.registry>>/<<parameters.repo>>/<<parameters.docker_name>>"
DOCKER_TAGS=$(echo -ne <<parameters.docker_tags>> | sed "s/,/\n/g" | sed "s/[^a-zA-Z0-9\n]/-/g" | sed -e "s|^|${IMAGE_BASE}:|")
DOCKER_TAGS=$(echo -ne <<parameters.docker_tags>> | sed "s/,/\n/g" | sed "s/[^a-zA-Z0-9\n]/-/g" | sed -e "s|^|-t ${IMAGE_BASE}:|")
echo -ne $DOCKER_TAGS | tr ' ' '\n' | xargs -L1 docker push
docker context create buildx-build
docker buildx create --use buildx-build
docker buildx build --platform=<<parameters.platforms>> --push \
$(echo -ne $DOCKER_TAGS | tr '\n' ' ') \
-f <<parameters.docker_file>> \
<<parameters.docker_context>>
-
run
:
-
run
:
name
:
Tag
name
:
Tag
command
:
|
command
:
|
...
@@ -1178,6 +1177,7 @@ workflows:
...
@@ -1178,6 +1177,7 @@ workflows:
docker_name
:
op-node
docker_name
:
op-node
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_context
:
.
docker_context
:
.
platforms
:
"
linux/amd64,linux/arm64"
context
:
context
:
-
oplabs-gcr-release
-
oplabs-gcr-release
requires
:
requires
:
...
@@ -1193,6 +1193,7 @@ workflows:
...
@@ -1193,6 +1193,7 @@ workflows:
docker_name
:
op-batcher
docker_name
:
op-batcher
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_context
:
.
docker_context
:
.
platforms
:
"
linux/amd64,linux/arm64"
context
:
context
:
-
oplabs-gcr-release
-
oplabs-gcr-release
requires
:
requires
:
...
@@ -1208,6 +1209,7 @@ workflows:
...
@@ -1208,6 +1209,7 @@ workflows:
docker_name
:
op-proposer
docker_name
:
op-proposer
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_context
:
.
docker_context
:
.
platforms
:
"
linux/amd64,linux/arm64"
context
:
context
:
-
oplabs-gcr-release
-
oplabs-gcr-release
requires
:
requires
:
...
...
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