@@ -121,7 +121,7 @@ jobs:
121
121
- name : Build X86 image for RONDB_VERSION_STABLE
122
122
if : github.repository == 'logicalclocks/rondb-docker' && (startsWith(github.ref_name, 'release-') || github.ref_name == 'main')
123
123
run : |
124
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
124
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
125
125
docker buildx build . \
126
126
--tag rondb-standalone:$RONDB_VERSION_STABLE-$VERSION \
127
127
--build-arg RONDB_VERSION=$RONDB_VERSION_STABLE \
@@ -131,7 +131,7 @@ jobs:
131
131
- name : Push X86 images to Dockerhub
132
132
if : github.repository == 'logicalclocks/rondb-docker' && (startsWith(github.ref_name, 'release-') || github.ref_name == 'main')
133
133
run : |
134
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
134
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
135
135
docker tag rondb-standalone:$RONDB_VERSION_LTS-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION
136
136
docker tag rondb-standalone:$RONDB_VERSION_STABLE-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_STABLE-$VERSION
137
137
docker push hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION
@@ -141,7 +141,7 @@ jobs:
141
141
- name : Push X86 *latest* images to Dockerhub
142
142
if : github.repository == 'logicalclocks/rondb-docker' && needs.check-git.outputs.is_highest_release == 'true'
143
143
run : |
144
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
144
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
145
145
docker tag rondb-standalone:$RONDB_VERSION_LTS-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-latest
146
146
docker tag rondb-standalone:$RONDB_VERSION_STABLE-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_STABLE-latest
147
147
docker tag rondb-standalone:$RONDB_VERSION_STABLE-$VERSION hopsworks/$X86_IMAGE_NAME:latest
@@ -175,7 +175,7 @@ jobs:
175
175
# all types of benchmarking to the tests.
176
176
- name : Build and push ARM64 image for RONDB_VERSION_LTS
177
177
run : |
178
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
178
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
179
179
TAGS="hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION"
180
180
if [[ "$is_highest_release" == "true" ]]; then
181
181
TAGS+=" --tag hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_LTS-latest"
@@ -192,7 +192,7 @@ jobs:
192
192
193
193
- name : Build and push ARM64 image for RONDB_VERSION_STABLE
194
194
run : |
195
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
195
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
196
196
TAGS="--tag hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_STABLE-$VERSION"
197
197
if [[ "$is_highest_release" == "true" ]]; then
198
198
TAGS+=" --tag hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_STABLE-latest"
@@ -228,7 +228,7 @@ jobs:
228
228
229
229
- name : Create and push multi-platform image
230
230
run : |
231
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
231
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
232
232
233
233
docker buildx imagetools create -t hopsworks/rondb-standalone:$RONDB_VERSION_LTS-$VERSION \
234
234
hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION \
0 commit comments