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
857da031
Unverified
Commit
857da031
authored
Oct 26, 2023
by
Adrian Sutton
Committed by
GitHub
Oct 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7882 from ethereum-optimism/aj/auth-before-publish
ci: Configure docker auth before attempting to publish.
parents
758af8b4
485f9c65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
22 deletions
+9
-22
config.yml
.circleci/config.yml
+9
-22
No files found.
.circleci/config.yml
View file @
857da031
...
@@ -231,6 +231,7 @@ jobs:
...
@@ -231,6 +231,7 @@ jobs:
DOCKER_OUTPUT_DESTINATION=""
DOCKER_OUTPUT_DESTINATION=""
if [ "<<parameters.publish>>" == "true" ]; then
if [ "<<parameters.publish>>" == "true" ]; then
gcloud auth configure-docker <<parameters.registry>>
echo "Building for platforms $PLATFORMS and then publishing to registry"
echo "Building for platforms $PLATFORMS and then publishing to registry"
DOCKER_OUTPUT_DESTINATION="--push"
DOCKER_OUTPUT_DESTINATION="--push"
if [ "<<parameters.save_image_tag>>" != "" ]; then
if [ "<<parameters.save_image_tag>>" != "" ]; then
...
@@ -271,20 +272,6 @@ jobs:
...
@@ -271,20 +272,6 @@ jobs:
root
:
/tmp/docker_images
root
:
/tmp/docker_images
paths
:
# only write the one file, to avoid concurrent workspace-file additions
paths
:
# only write the one file, to avoid concurrent workspace-file additions
-
"
<<parameters.docker_name>>.tar"
-
"
<<parameters.docker_name>>.tar"
-
when
:
condition
:
"
<<parameters.publish>>"
steps
:
-
run
:
name
:
Publish
command
:
|
gcloud auth configure-docker <<parameters.registry>>
IMAGE_BASE="<<parameters.registry>>/<<parameters.repo>>/<<parameters.docker_name>>"
# tags, without the '-t ' here, so we can loop over them
DOCKER_TAGS="$(echo -ne "<<parameters.docker_tags>>" | sed "s/,/\n/g" | sed "s/[^a-zA-Z0-9\n]/-/g" | sed -e "s|^|${IMAGE_BASE}:|")"
for docker_image_tag in $DOCKER_TAGS; do
docker image push $docker_image_tag
done
no_output_timeout
:
45m
-
when
:
-
when
:
condition
:
"
<<parameters.release>>"
condition
:
"
<<parameters.release>>"
steps
:
steps
:
...
@@ -1506,7 +1493,7 @@ workflows:
...
@@ -1506,7 +1493,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
op-heartbeat
docker_name
:
op-heartbeat
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
requires
:
[
'
op-stack-go-docker-build-release'
]
requires
:
[
'
op-stack-go-docker-build-release'
]
platforms
:
"
linux/amd64,linux/arm64"
platforms
:
"
linux/amd64,linux/arm64"
publish
:
true
publish
:
true
...
@@ -1521,7 +1508,7 @@ workflows:
...
@@ -1521,7 +1508,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
op-node
docker_name
:
op-node
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
requires
:
[
'
op-stack-go-docker-build-release'
]
requires
:
[
'
op-stack-go-docker-build-release'
]
platforms
:
"
linux/amd64,linux/arm64"
platforms
:
"
linux/amd64,linux/arm64"
publish
:
true
publish
:
true
...
@@ -1536,7 +1523,7 @@ workflows:
...
@@ -1536,7 +1523,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
op-batcher
docker_name
:
op-batcher
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
requires
:
[
'
op-stack-go-docker-build-release'
]
requires
:
[
'
op-stack-go-docker-build-release'
]
platforms
:
"
linux/amd64,linux/arm64"
platforms
:
"
linux/amd64,linux/arm64"
publish
:
true
publish
:
true
...
@@ -1551,7 +1538,7 @@ workflows:
...
@@ -1551,7 +1538,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
op-proposer
docker_name
:
op-proposer
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
requires
:
[
'
op-stack-go-docker-build-release'
]
requires
:
[
'
op-stack-go-docker-build-release'
]
platforms
:
"
linux/amd64,linux/arm64"
platforms
:
"
linux/amd64,linux/arm64"
publish
:
true
publish
:
true
...
@@ -1566,7 +1553,7 @@ workflows:
...
@@ -1566,7 +1553,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
op-challenger
docker_name
:
op-challenger
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
requires
:
[
'
op-stack-go-docker-build-release'
]
requires
:
[
'
op-stack-go-docker-build-release'
]
platforms
:
"
linux/amd64,linux/arm64"
platforms
:
"
linux/amd64,linux/arm64"
publish
:
true
publish
:
true
...
@@ -1581,7 +1568,7 @@ workflows:
...
@@ -1581,7 +1568,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
op-ufm
docker_name
:
op-ufm
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
publish
:
true
publish
:
true
release
:
true
release
:
true
context
:
context
:
...
@@ -1596,7 +1583,7 @@ workflows:
...
@@ -1596,7 +1583,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
proxyd
docker_name
:
proxyd
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
publish
:
true
publish
:
true
release
:
true
release
:
true
context
:
context
:
...
@@ -1611,7 +1598,7 @@ workflows:
...
@@ -1611,7 +1598,7 @@ workflows:
branches
:
branches
:
ignore
:
/.*/
ignore
:
/.*/
docker_name
:
indexer
docker_name
:
indexer
docker_tags
:
<<pipeline.git.revision>>
,<<pipeline.git.tag>>
docker_tags
:
<<pipeline.git.revision>>
publish
:
true
publish
:
true
release
:
true
release
:
true
context
:
context
:
...
...
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