Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
heptapod-docker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
heptapod
heptapod-docker
Compare revisions
f0a331d3bc83291bcff7bf5c3837ab12fead191e to 9b70fb4dd3ea836f9342791b95c27c2a2325f09d
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
heptapod/heptapod-docker
Select target project
No results found
9b70fb4dd3ea836f9342791b95c27c2a2325f09d
Select Git revision
Swap
Target
heptapod/heptapod-docker
Select target project
heptapod/heptapod-docker
1 result
f0a331d3bc83291bcff7bf5c3837ab12fead191e
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Testing images push: Update --help and logs
· 7b5986eb9dd8
Georges Racinet
authored
1 month ago
The messages were misleading, we no longer push to docker.io
7b5986eb9dd8
release-full: different microblogging messages for final and rc
· 9b70fb4dd3ea
Georges Racinet
authored
1 month ago
9b70fb4dd3ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
registry-pull-push-testing
+2
-1
2 additions, 1 deletion
registry-pull-push-testing
release-full
+24
-3
24 additions, 3 deletions
release-full
with
26 additions
and
4 deletions
registry-pull-push-testing
View file @
9b70fb4d
...
...
@@ -31,7 +31,8 @@
)
parser
.
add_argument
(
"
--podman
"
,
action
=
"
store_true
"
,
help
=
"
Use Podman instead of Docker
"
)
parser
.
add_argument
(
"
--push
"
,
help
=
"
Push to Docker Hub
"
,
action
=
"
store_true
"
)
parser
.
add_argument
(
"
--push
"
,
help
=
"
Push to distribution registry
"
,
action
=
"
store_true
"
)
parser
.
add_argument
(
"
--tag
"
,
help
=
"
TAG of the image to pull *and* the image to push
"
,
default
=
DEFAULT_IMAGE_TAG
)
...
...
This diff is collapsed.
Click to expand it.
release-full
View file @
9b70fb4d
...
...
@@ -2,6 +2,7 @@
import
argparse
import
logging
from
pathlib
import
Path
import
re
import
subprocess
FILE_PATH
=
Path
(
__file__
)
...
...
@@ -9,7 +10,7 @@
logger
=
logging
.
getLogger
(
FILE_PATH
.
name
.
rsplit
(
'
.
'
,
1
)[
0
])
TWITT_TEMPLATE
=
(
TWITT_TEMPLATE
_RC
=
(
"
#heptapod {version}
"
"
released, COMMENT_HERE
"
"
Docker: https://hub.docker.com/r/heptapod/heptapod/
"
...
...
@@ -18,6 +19,21 @@
"
HEPTAPOD_CHANGELOG.md #git #mercurial
"
)
TWITT_TEMPLATE_FINAL
=
(
"
#heptapod {version}
"
"
released, COMMENT_HERE
"
"
Changelog:
"
"
https://foss.heptapod.net/heptapod/heptapod/-/blob/heptapod-{version}/
"
"
HEPTAPOD_CHANGELOG.md
"
"
Download instructions:
"
"
https://heptapod.net/pages/get-heptapod.html#get-heptapod
"
"
#git #mercurial
"
)
def
is_final_version
(
version
):
return
re
.
match
(
r
'
^\d+\.\d+\.\d+$
'
,
version
)
is
not
None
def
validate_sha256
(
s
):
assert
len
(
s
)
==
64
...
...
@@ -84,7 +100,8 @@
latest
=
validate_yes
(
input
(
"
Update the `latest` container tag (y/N)?
"
))
logger
.
info
(
"
Pulling image %r from registry.h.n, pushing it
"
"
to docker.io, testing consistency with Omnibus tag %r,
"
"
to distribution registry, testing consistency with
"
"
Omnibus tag %r,
"
"
and pushing version tag for series %r, with latest=%r.
"
,
image_testing_tag
,
omnibus_tag
,
...
...
@@ -107,7 +124,11 @@
check_call
(
push_release
,
simulate
=
simulate
)
print
(
"
\n
Now brag about it on social media, inserting additional comments
"
"
into the following:
\n
"
)
print
(
TWITT_TEMPLATE
.
format
(
version
=
version
))
if
is_final_version
(
version
):
tmpl
=
TWITT_TEMPLATE_FINAL
else
:
tmpl
=
TWITT_TEMPLATE_RC
print
(
tmpl
.
format
(
version
=
version
))
if
__name__
==
'
__main__
'
:
...
...
This diff is collapsed.
Click to expand it.