Skip to content

Commit 7b36496

Browse files
committed
don't push final images
1 parent 2a3df11 commit 7b36496

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

.github/workflows/buildContainer.yaml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -259,50 +259,50 @@ jobs:
259259
# file: Images/${{ matrix.multiplugin }}/${{ matrix.multiplugin }}.dockerfile
260260
# tags: ghcr.io/${{ github.repository }}/${{ matrix.multiplugin }}:testcandidate
261261

262-
publish_images:
263-
needs:
264-
- build_plugins
265-
- build_main
266-
- build_mulit_plugins
267-
strategy:
268-
matrix:
269-
image: ["qp-deblur", "qtp-biom", "qtp-sequencing", "qtp-visualization", "qtp-diversity", "qp-target-gene", "qtp-job-output-folder",
270-
"nginx", "qiita", "plugin_collector",
271-
"qp-qiime2"]
272-
runs-on: ubuntu-latest
273-
steps:
274-
- name: Checkout tinqiita repo
275-
uses: actions/checkout@v4
276-
277-
- name: Log in to GitHub Container Registry
278-
uses: docker/login-action@v3
279-
with:
280-
registry: ghcr.io
281-
username: ${{ github.actor }}
282-
password: ${{ secrets.GITHUB_TOKEN }}
283-
284-
- name: Login to computational.bio registry
285-
uses: docker/login-action@v3
286-
with:
287-
registry: harbor.computational.bio.uni-giessen.de
288-
username: ${{ vars.HARBOR_CB_USERNAME }}
289-
password: ${{ secrets.HARBOR_CB_SECRET }}
290-
291-
- name: Pull image from GHCR
292-
run: docker pull ghcr.io/${{ github.repository }}/${{ matrix.image }}:testcandidate
293-
294-
- name: Read image version from dockerfile
295-
id: vars
296-
run: |
297-
VERSION=$(head -n 1 Images/${{ matrix.image }}/${{ matrix.image }}.dockerfile | cut -d ":" -f 2- | tr -d " ")
298-
echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV
299-
300-
- name: Retag image for Docker Hub
301-
run: |
302-
docker tag ghcr.io/${{ github.repository }}/${{ matrix.image }}:testcandidate harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:${{ env.IMAGE_TAG }}
303-
docker tag ghcr.io/${{ github.repository }}/${{ matrix.image }}:testcandidate harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:latest
304-
305-
- name: Push image to Docker Hub
306-
run: |
307-
docker push harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:${{ env.IMAGE_TAG }}
308-
docker push harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:latest
262+
# publish_images:
263+
# needs:
264+
# - build_plugins
265+
# - build_main
266+
# - build_mulit_plugins
267+
# strategy:
268+
# matrix:
269+
# image: ["qp-deblur", "qtp-biom", "qtp-sequencing", "qtp-visualization", "qtp-diversity", "qp-target-gene", "qtp-job-output-folder",
270+
# "nginx", "qiita", "plugin_collector",
271+
# "qp-qiime2"]
272+
# runs-on: ubuntu-latest
273+
# steps:
274+
# - name: Checkout tinqiita repo
275+
# uses: actions/checkout@v4
276+
277+
# - name: Log in to GitHub Container Registry
278+
# uses: docker/login-action@v3
279+
# with:
280+
# registry: ghcr.io
281+
# username: ${{ github.actor }}
282+
# password: ${{ secrets.GITHUB_TOKEN }}
283+
284+
# - name: Login to computational.bio registry
285+
# uses: docker/login-action@v3
286+
# with:
287+
# registry: harbor.computational.bio.uni-giessen.de
288+
# username: ${{ vars.HARBOR_CB_USERNAME }}
289+
# password: ${{ secrets.HARBOR_CB_SECRET }}
290+
291+
# - name: Pull image from GHCR
292+
# run: docker pull ghcr.io/${{ github.repository }}/${{ matrix.image }}:testcandidate
293+
294+
# - name: Read image version from dockerfile
295+
# id: vars
296+
# run: |
297+
# VERSION=$(head -n 1 Images/${{ matrix.image }}/${{ matrix.image }}.dockerfile | cut -d ":" -f 2- | tr -d " ")
298+
# echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV
299+
300+
# - name: Retag image for Docker Hub
301+
# run: |
302+
# docker tag ghcr.io/${{ github.repository }}/${{ matrix.image }}:testcandidate harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:${{ env.IMAGE_TAG }}
303+
# docker tag ghcr.io/${{ github.repository }}/${{ matrix.image }}:testcandidate harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:latest
304+
305+
# - name: Push image to Docker Hub
306+
# run: |
307+
# docker push harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:${{ env.IMAGE_TAG }}
308+
# docker push harbor.computational.bio.uni-giessen.de/tinqiita/${{ matrix.image }}:latest

0 commit comments

Comments
 (0)