Skip to content

Commit 73d2f74

Browse files
committed
for quay.io as well
1 parent 75b04fa commit 73d2f74

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,15 @@ echo BUILD_DATE=${BUILD_DATE} VCS_REF=${VCS_REF} VERSION=${VERSION}
224224
# build the container image
225225
docker build --build-arg BUILD_DATE=${BUILD_DATE} --build-arg VCS_REF=${VCS_REF} \
226226
--build-arg VERSION=${VERSION} \
227-
-t docker.io/commonworkflowlanguage/cwlviewer:v${VERSION} .
228-
# (optionally) push the development snapshot container image to Docker Hub
229-
docker push docker.io/commonworkflowlanguage/cwlviewer:v${new_version}
227+
-t cwlviewer:v${VERSION} .
228+
# the rest is optional
229+
docker tag cwlviewer:v${VERSION} docker.io/commonworkflowlanguage/cwlviewer:v${VERSION}
230+
docker tag cwlviewer:v${VERSION} quay.io/commonwl/cwlviewer:v${VERSION}
231+
docker push docker.io/commonworkflowlanguage/cwlviewer:v${VERSION}
232+
docker push quay.io/commonwl/cwlviewer:v${VERSION}
230233
```
231234

232-
## Making a release and publishing to GitHub and DockerHub
235+
## Making a release and publishing to GitHub, DockerHub, and Quay.io
233236

234237
After CHANGELOG.md has been updated, run the following:
235238

@@ -245,13 +248,17 @@ echo BUILD_DATE=${BUILD_DATE} VCS_REF=${VCS_REF} VERSION=${VERSION}
245248
# build the container image
246249
docker build --build-arg BUILD_DATE=${BUILD_DATE} --build-arg VCS_REF=${VCS_REF} \
247250
--build-arg VERSION=${VERSION} \
248-
-t docker.io/commonworkflowlanguage/cwlviewer:v${VERSION} .
249-
# push the container image to Docker Hub
251+
-t cwlviewer:v${VERSION} .
252+
# tag this container image in preparation for pushing to Docker Hub and Quay.io
253+
docker tag cwlviewer:v${VERSION} docker.io/commonworkflowlanguage/cwlviewer:v${VERSION}
254+
docker tag cwlviewer:v${VERSION} docker.io/commonworkflowlanguage/cwlviewer:latest
255+
docker tag cwlviewer:v${VERSION} quay.io/commonwl/cwlviewer:v${VERSION}
256+
docker tag cwlviewer:v${VERSION} quay.io/commonwl/cwlviewer:latest
257+
# push the container image to Docker Hub and Quay.io
250258
docker push docker.io/commonworkflowlanguage/cwlviewer:v${VERSION}
251-
# tag this container image as :latest and push to Docker Hub
252-
docker tag docker.io/commonworkflowlanguage/cwlviewer:v{VERSION} \
253-
docker.io/commonworkflowlanguage/cwlviewer:latest
254259
docker push docker.io/commonworkflowlanguage/cwlviewer:latest
260+
docker push quay.io/commonwl/cwlviewer:v${VERSION}
261+
docker push quay.io/commonwl/cwlviewer:latest
255262
# upload the annotated tag to GitHub
256263
git push --tags
257264
```

0 commit comments

Comments
 (0)