96
96
- name : Build X86 image for RONDB_VERSION_STABLE
97
97
if : github.repository == 'logicalclocks/rondb-docker' && (startsWith(github.ref_name, 'release-') || github.ref_name == 'main')
98
98
run : |
99
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
99
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
100
100
docker buildx build . \
101
101
--tag rondb-standalone:$RONDB_VERSION_STABLE-$VERSION \
102
102
--build-arg RONDB_VERSION=$RONDB_VERSION_STABLE \
@@ -107,7 +107,7 @@ jobs:
107
107
- name : Push X86 *latest* images to Dockerhub
108
108
if : github.repository == 'logicalclocks/rondb-docker' && github.ref_name == 'main'
109
109
run : |
110
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
110
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
111
111
docker tag rondb-standalone:$RONDB_VERSION_LTS-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION
112
112
docker tag rondb-standalone:$RONDB_VERSION_STABLE-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_STABLE-$VERSION
113
113
docker tag rondb-standalone:$RONDB_VERSION_LTS-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-latest
@@ -122,7 +122,7 @@ jobs:
122
122
- name : Push X86 *release* images to Dockerhub
123
123
if : github.repository == 'logicalclocks/rondb-docker' && startsWith(github.ref_name, 'release-')
124
124
run : |
125
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
125
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
126
126
docker tag rondb-standalone:$RONDB_VERSION_LTS-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION
127
127
docker tag rondb-standalone:$RONDB_VERSION_STABLE-$VERSION hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_STABLE-$VERSION
128
128
docker push hopsworks/$X86_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION
@@ -151,7 +151,7 @@ jobs:
151
151
# all types of benchmarking to the tests.
152
152
- name : Build and push ARM64 image for RONDB_VERSION_LTS
153
153
run : |
154
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
154
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
155
155
TAGS="hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_LTS-$VERSION"
156
156
if [[ "${{ github.ref_name == 'main' }}" == "true" ]]; then
157
157
TAGS+=" --tag hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_LTS-latest"
@@ -168,7 +168,7 @@ jobs:
168
168
169
169
- name : Build and push ARM64 image for RONDB_VERSION_STABLE
170
170
run : |
171
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
171
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
172
172
TAGS="--tag hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_STABLE-$VERSION"
173
173
if [[ "${{ github.ref_name == 'main' }}" == "true" ]]; then
174
174
TAGS+=" --tag hopsworks/$ARM_IMAGE_NAME:$RONDB_VERSION_STABLE-latest"
@@ -202,7 +202,7 @@ jobs:
202
202
203
203
- name : Create and push multi-platform image
204
204
run : |
205
- VERSION="$(< "./VERSION" sed -e 's/^[[:space:]]*//')"
205
+ VERSION="$(sed -e 's/^[[:space:]]*//' -e '/-SNAPSHOT$/s/.*/dev/' ./VERSION )"
206
206
207
207
# Using $VERSION will create weird `-SNAPSHOT` tags, when in main, but we need
208
208
# those Dockerhub images in order to run the main branch.
0 commit comments