Skip to content

Commit 8e12e43

Browse files
committed
Merge remote-tracking branch 'IQSS/develop' into RoleAccessHistory
2 parents 62f976e + f79a02b commit 8e12e43

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+569
-234
lines changed

.github/workflows/container_maintenance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,6 @@ jobs:
272272
with:
273273
username: ${{ secrets.DOCKERHUB_USERNAME }}
274274
password: ${{ secrets.DOCKERHUB_TOKEN }}
275-
repository: gdcc/base
275+
repository: gdcc/configbaker
276276
short-description: "Dataverse Config Baker Container Image providing setup tooling and more"
277277
readme-filepath: ./modules/container-configbaker/README.md

.github/workflows/scripts/containers/maintain-application.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ for BRANCH in "$@"; do
126126
# 6. Let's put together what tags we want added to this build run
127127
TAG_OPTIONS=""
128128
if ! (( IS_DEV )); then
129-
TAG_OPTIONS="-Dapp.image=$APP_IMAGE_REF -Ddocker.tags.revision=$NEXT_REV_TAG"
129+
TAG_OPTIONS="-Dapp.image=$APP_IMAGE_REF -Dapp.image.tag.1=$NEXT_REV_TAG"
130130
# In case of the current release, add the "latest" tag as well.
131131
if (( IS_CURRENT_RELEASE )); then
132-
TAG_OPTIONS="$TAG_OPTIONS -Ddocker.tags.latest=latest"
132+
TAG_OPTIONS="$TAG_OPTIONS -Dapp.image.tag.2=latest"
133133
fi
134134
else
135135
# shellcheck disable=SC2016
136136
UPCOMING_TAG=$( mvn initialize help:evaluate -Pct -f . -Dexpression=app.image.tag -Dapp.image.tag='${app.image.version}-${base.image.flavor}' -q -DforceStdout )
137-
TAG_OPTIONS="-Ddocker.tags.upcoming=$UPCOMING_TAG"
137+
TAG_OPTIONS="-Dapp.image.tag.1=$UPCOMING_TAG"
138138

139139
# For the dev branch we only have rolling tags and can add them now already
140140
SUPPORTED_ROLLING_TAGS+=("[\"unstable\", \"$UPCOMING_TAG\"]")
@@ -148,9 +148,8 @@ for BRANCH in "$@"; do
148148
# Build the application image, but skip the configbaker image (that's a different job)!
149149
# shellcheck disable=SC2046
150150
mvn -Pct -f . deploy -Ddocker.noCache -Ddocker.platforms="${PLATFORMS}" \
151-
-Dconf.skipBuild -Dbase.image="${BASE_IMAGE_REF}" \
152-
-Ddocker.imagePropertyConfiguration=override $TAG_OPTIONS \
153-
$( if (( DAMP_RUN )); then echo "-Ddocker.skip.push -Ddocker.skip.tag"; fi )
151+
-Dconf.skipBuild -Dbase.image="${BASE_IMAGE_REF}" $TAG_OPTIONS \
152+
$( if (( DAMP_RUN )); then echo "-Ddocker.skip.push"; fi )
154153
else
155154
echo "Skipping Maven build as requested by DRY_RUN=1"
156155
fi

.github/workflows/scripts/containers/maintain-base.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ for BRANCH in "$@"; do
120120
CURRENT_REV_TAG="${BASE_IMAGE_REF#*:}-r$REV"
121121
NEXT_REV_TAG="${BASE_IMAGE_REF#*:}-r$(( REV + 1 ))"
122122

123+
# 6a. Determine if we must newly release an "r0" because a rolling tag from development is now released.
124+
IS_NEW_RELEASE=0
125+
if ! (( IS_DEV )) && [ "$REV" = "-1" ]; then
126+
echo "This is a newly released version of Dataverse - forcing build, as no r0 image is present on Docker Hub"
127+
IS_NEW_RELEASE=1
128+
fi
129+
123130
# 7. Let's put together what tags we want added to this build run
124131
TAG_OPTIONS=""
125132
if ! (( IS_DEV )); then
@@ -139,12 +146,12 @@ for BRANCH in "$@"; do
139146

140147
# 8. Let's build the base image if necessary
141148
NEWER_IMAGE=0
142-
if (( NEWER_JAVA_IMAGE + NEWER_PKGS + FORCE_BUILD > 0 )); then
149+
if (( NEWER_JAVA_IMAGE + NEWER_PKGS + IS_NEW_RELEASE + FORCE_BUILD > 0 )); then
143150
if ! (( DRY_RUN )); then
144151
# shellcheck disable=SC2046
145152
mvn -Pct -f modules/container-base deploy -Ddocker.noCache -Ddocker.platforms="${PLATFORMS}" \
146153
-Ddocker.imagePropertyConfiguration=override $TAG_OPTIONS \
147-
$( if (( DAMP_RUN )); then echo "-Ddocker.skip.push -Ddocker.skip.tag"; fi )
154+
$( if (( DAMP_RUN )); then echo "-Ddocker.skip.push"; fi )
148155
else
149156
echo "Skipping Maven build as requested by DRY_RUN=1"
150157
fi

.github/workflows/scripts/containers/maintain-configbaker.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ for BRANCH in "$@"; do
122122
# 6. Let's put together what tags we want added to this build run
123123
TAG_OPTIONS=""
124124
if ! (( IS_DEV )); then
125-
TAG_OPTIONS="-Dconf.image=$CONFIG_IMAGE_REF -Ddocker.tags.revision=$NEXT_REV_TAG"
125+
TAG_OPTIONS="-Dconf.image=$CONFIG_IMAGE_REF -Dconf.image.tag.1=$NEXT_REV_TAG"
126126
# In case of the current release, add the "latest" tag as well.
127127
if (( IS_CURRENT_RELEASE )); then
128-
TAG_OPTIONS="$TAG_OPTIONS -Ddocker.tags.latest=latest"
128+
TAG_OPTIONS="$TAG_OPTIONS -Dconf.image.tag.2=latest"
129129
fi
130130
else
131131
# shellcheck disable=SC2016
132132
UPCOMING_TAG=$( mvn initialize help:evaluate -Pct -f . -Dexpression=conf.image.tag -Dconf.image.tag='${app.image.version}-${conf.image.flavor}' -q -DforceStdout )
133-
TAG_OPTIONS="-Ddocker.tags.upcoming=$UPCOMING_TAG"
133+
TAG_OPTIONS="-Dconf.image.tag.1=$UPCOMING_TAG"
134134

135135
# For the dev branch we only have rolling tags and can add them now already
136136
SUPPORTED_ROLLING_TAGS+=("[\"unstable\", \"$UPCOMING_TAG\"]")
@@ -145,9 +145,8 @@ for BRANCH in "$@"; do
145145
# shellcheck disable=SC2046
146146
mvn -Pct -f . deploy -Ddocker.noCache -Ddocker.platforms="${PLATFORMS}" \
147147
-Dapp.skipBuild -Dconf.image.base="${BASE_IMAGE_REF}" \
148-
-Dmaven.main.skip -Dmaven.test.skip -Dmaven.war.skip \
149-
-Ddocker.imagePropertyConfiguration=override $TAG_OPTIONS \
150-
$( if (( DAMP_RUN )); then echo "-Ddocker.skip.push -Ddocker.skip.tag"; fi )
148+
-Dmaven.main.skip -Dmaven.test.skip -Dmaven.war.skip $TAG_OPTIONS \
149+
$( if (( DAMP_RUN )); then echo "-Ddocker.skip.push"; fi )
151150
else
152151
echo "Skipping Maven build as requested by DRY_RUN=1"
153152
fi

doc/release-notes/10190-dataset-count.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

doc/release-notes/11243-editmetadata-api-extension.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

doc/release-notes/11392-edit-file-metadata-empty-values.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

doc/release-notes/11404-shibboleth-mdq-wayfinder.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

doc/release-notes/11448-api-endpoint-for-analytics-html.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

doc/release-notes/11485-mpconfig-personororg.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)