From 0e47cc85e14741695a13e0e9ac1acde00e9af352 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Fri, 18 Oct 2024 21:58:34 -0700 Subject: [PATCH] Push to quay.io on build --- .github/workflows/build.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 420217e..fdcd798 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,5 +15,10 @@ jobs: - name: Build image with Dockerfile & repo2docker uses: jupyterhub/repo2docker-action@master with: - NO_PUSH: true - IMAGE_NAME: test \ No newline at end of file + # Don't push the image during a PR build + NO_PUSH: "${{ github.event_name == 'pull_request' }}" + # Provide the username and password. These are empty when we are in a PR + DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }} + DOCKER_REGISTRY: "quay.io" + IMAGE_NAME: quay.io/2i2c/cellmap-segmentation-challenge-evaluator \ No newline at end of file