Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_cms
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
project
drupal_cms
Merge requests
!413
Make a better way to tag
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Make a better way to tag
issue/drupal_cms-3493335:better-tagging
into
1.x
Overview
0
Commits
5
Pipelines
22
Changes
26
Merged
Adam G-H
requested to merge
issue/drupal_cms-3493335:better-tagging
into
1.x
4 months ago
Overview
0
Commits
5
Pipelines
22
Changes
26
Expand
0
0
Merge request reports
Compare
1.x
version 21
547a9119
4 months ago
version 20
ccb46d82
4 months ago
version 19
054a33b3
4 months ago
version 18
902bc93a
4 months ago
version 17
22a9258b
4 months ago
version 16
8c2b27b3
4 months ago
version 15
aedc3985
4 months ago
version 14
1948ff8f
4 months ago
version 13
28b3e176
4 months ago
version 12
a8d72fcb
4 months ago
version 11
4a7ba85b
4 months ago
version 10
e960a7d5
4 months ago
version 9
c4023533
4 months ago
version 8
e4baf35b
4 months ago
version 7
6ac12f9c
4 months ago
version 6
2b1c680e
4 months ago
version 5
142ddf4f
4 months ago
version 4
f601a439
4 months ago
version 3
ac6eb98e
4 months ago
version 2
ac263436
4 months ago
version 1
7a2ab431
4 months ago
1.x (base)
and
latest version
latest version
547a9119
5 commits,
4 months ago
version 21
547a9119
5 commits,
4 months ago
version 20
ccb46d82
4 commits,
4 months ago
version 19
054a33b3
3 commits,
4 months ago
version 18
902bc93a
2 commits,
4 months ago
version 17
22a9258b
2 commits,
4 months ago
version 16
8c2b27b3
2 commits,
4 months ago
version 15
aedc3985
2 commits,
4 months ago
version 14
1948ff8f
2 commits,
4 months ago
version 13
28b3e176
2 commits,
4 months ago
version 12
a8d72fcb
2 commits,
4 months ago
version 11
4a7ba85b
2 commits,
4 months ago
version 10
e960a7d5
2 commits,
4 months ago
version 9
c4023533
2 commits,
4 months ago
version 8
e4baf35b
2 commits,
4 months ago
version 7
6ac12f9c
2 commits,
4 months ago
version 6
2b1c680e
2 commits,
4 months ago
version 5
142ddf4f
2 commits,
4 months ago
version 4
f601a439
2 commits,
4 months ago
version 3
ac6eb98e
1 commit,
4 months ago
version 2
ac263436
1 commit,
4 months ago
version 1
7a2ab431
1 commit,
4 months ago
26 files
+
86
−
68
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
26
Search (e.g. *.vue) (Ctrl+P)
.ddev/commands/web/tag
+
13
−
18
Options
@@ -13,8 +13,12 @@ if [ -z "$VERSION" ]; then
exit
1
fi
# Find all `composer.json` files and change their `*` version constraints.
find
.
-maxdepth
3
-type
f
-name
composer.json
-exec
sed
--in-place
"s/
\"\*\"
/
\"
~
$VERSION
\"
/g"
{}
';'
COMPONENTS
=
$(
find
$PWD
-maxdepth
2
-type
d
-name
'drupal_cms_*'
-or
-name
project_template
)
# Change all components' version constraints.
for
dir
in
$COMPONENTS
;
do
adjust-constraints
$dir
"~
$VERSION
"
done
# Generate pre-parsed versions of the recipes available to the installer,
# and store them in a serialized file format for one-time use. This greatly
@@ -23,24 +27,13 @@ cd $DDEV_DOCROOT
./profiles/drupal_cms_installer/build-cache.sh
cd
-
# Bump the minimum stability of the project template and ensure it correctly
# conflicts with `drupal/drupal`.
cd
project_template
composer config minimum-stability beta
jq
--indent
4
'.conflict."drupal/drupal" = "*"'
composer.json
>
tag.json
mv
-f
tag.json composer.json
cd
-
# For visbility, output every line we're executing, as interpreted by the shell.
set
-x
# Remove any untracked files.
git clean
-d
--force
# Bump the minimum stability of the project template.
composer config minimum-stability stable
--working-dir
=
project_template
# Stage all changes, but if we're just testing this script, don't actually commit
# or tag anything.
git add
.
if
[[
"
$VERSION
"
==
"test"
]]
;
then
git add
$COMPONENTS
if
[[
$2
==
"test"
]]
;
then
exit
0
fi
@@ -49,5 +42,7 @@ git commit --message=$VERSION
git tag
$VERSION
# Make another commit that puts this branch back into its pre-tagged state.
find
.
-maxdepth
2
-type
d
-name
'drupal_cms_*'
-or
-name
project_template
-exec
git checkout HEAD^1
{}
';'
for
dir
in
$COMPONENTS
;
do
git checkout HEAD^1
$dir
done
git commit
--all
--message
=
"Back to dev."
Loading