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
5c27267a
Commit
5c27267a
authored
Nov 10, 2022
by
Zach Howard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing few bugs and better error handling for docker-tag job
parent
d7524a7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
config.yml
.circleci/config.yml
+3
-4
ci-docker-tag-op-stack-release.sh
ops/scripts/ci-docker-tag-op-stack-release.sh
+10
-2
No files found.
.circleci/config.yml
View file @
5c27267a
...
...
@@ -171,18 +171,17 @@ jobs:
type
:
string
default
:
"
bedrock-goerli-development/images"
docker
:
-
image
:
google/cloud-sdk:latest
-
image
:
cimg/python:3.7
resource_class
:
small
steps
:
-
run
:
command
:
mkdir -p /home/circleci
-
gcp-cli/install
-
gcp-oidc-authenticate
-
checkout
-
run
:
name
:
Tag
command
:
|
gcloud auth configure-docker <<parameters.registry>>
./ops/ci-docker-tag-op-stack-release.sh <<parameters.registry>>/<<parameters.repo>> $CIRCLE_TAG $CIRCLE_SHA1
./ops/
scripts/
ci-docker-tag-op-stack-release.sh <<parameters.registry>>/<<parameters.repo>> $CIRCLE_TAG $CIRCLE_SHA1
contracts-bedrock-tests
:
docker
:
...
...
ops/scripts/ci-docker-tag-op-stack-release.sh
View file @
5c27267a
...
...
@@ -6,8 +6,16 @@ DOCKER_REPO=$1
GIT_TAG
=
$2
GIT_SHA
=
$3
IMAGE_NAME
=
$(
echo
"
$GIT_TAG
"
|
grep
-Eow
'^op-[a-z0-9\-]*'
)
IMAGE_TAG
=
$(
echo
"
$GIT_TAG
"
|
grep
-Eow
'v.*'
)
IMAGE_NAME
=
$(
echo
"
$GIT_TAG
"
|
grep
-Eow
'^op-[a-z0-9\-]*'
||
true
)
if
[
-z
"
$IMAGE_NAME
"
]
;
then
echo
"image name could not be parsed from git tag '
$GIT_TAG
'"
exit
1
fi
IMAGE_TAG
=
$(
echo
"
$GIT_TAG
"
|
grep
-Eow
'v.*'
||
true
)
if
[
-z
"
$IMAGE_TAG
"
]
;
then
echo
"image tag could not be parsed from git tag '
$GIT_TAG
'"
exit
1
fi
SOURCE_IMAGE_TAG
=
"
$DOCKER_REPO
/
$IMAGE_NAME
:
$GIT_SHA
"
TARGET_IMAGE_TAG
=
"
$DOCKER_REPO
/
$IMAGE_NAME
:
$IMAGE_TAG
"
...
...
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