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
1a563c71
Unverified
Commit
1a563c71
authored
Oct 23, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: skip second docker build in devnet branch of workflow
parent
284f3a4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
config.yml
.circleci/config.yml
+1
-0
__init__.py
bedrock-devnet/devnet/__init__.py
+12
-8
No files found.
.circleci/config.yml
View file @
1a563c71
...
...
@@ -1031,6 +1031,7 @@ jobs:
image
:
ubuntu-2204:2022.10.2
environment
:
DOCKER_BUILDKIT
:
1
DEVNET_NO_BUILD
:
'
true'
steps
:
-
checkout
-
check-changed
:
...
...
bedrock-devnet/devnet/__init__.py
View file @
1a563c71
...
...
@@ -97,14 +97,18 @@ def main():
git_commit
=
subprocess
.
run
([
'git'
,
'rev-parse'
,
'HEAD'
],
capture_output
=
True
,
text
=
True
)
.
stdout
.
strip
()
git_date
=
subprocess
.
run
([
'git'
,
'show'
,
'-s'
,
"--format=
%
ct"
],
capture_output
=
True
,
text
=
True
)
.
stdout
.
strip
()
log
.
info
(
f
'Building docker images for git commit {git_commit} ({git_date})'
)
run_command
([
'docker'
,
'compose'
,
'build'
,
'--progress'
,
'plain'
,
'--build-arg'
,
f
'GIT_COMMIT={git_commit}'
,
'--build-arg'
,
f
'GIT_DATE={git_date}'
],
cwd
=
paths
.
ops_bedrock_dir
,
env
=
{
'PWD'
:
paths
.
ops_bedrock_dir
,
'DOCKER_BUILDKIT'
:
'1'
,
# (should be available by default in later versions, but explicitly enable it anyway)
'COMPOSE_DOCKER_CLI_BUILD'
:
'1'
# use the docker cache
})
# CI loads the images from workspace, and does not otherwise know the images are good as-is
if
os
.
getenv
(
'DEVNET_NO_BUILD'
)
==
"true"
:
log
.
info
(
'Skipping docker images build'
)
else
:
log
.
info
(
f
'Building docker images for git commit {git_commit} ({git_date})'
)
run_command
([
'docker'
,
'compose'
,
'build'
,
'--progress'
,
'plain'
,
'--build-arg'
,
f
'GIT_COMMIT={git_commit}'
,
'--build-arg'
,
f
'GIT_DATE={git_date}'
],
cwd
=
paths
.
ops_bedrock_dir
,
env
=
{
'PWD'
:
paths
.
ops_bedrock_dir
,
'DOCKER_BUILDKIT'
:
'1'
,
# (should be available by default in later versions, but explicitly enable it anyway)
'COMPOSE_DOCKER_CLI_BUILD'
:
'1'
# use the docker cache
})
log
.
info
(
'Devnet starting'
)
devnet_deploy
(
paths
)
...
...
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