]> source.dussan.org Git - gitblit.git/commitdiff
ci: Add debug logging to nightly build
authorFlorian Zschocke <f.zschocke+git@gmail.com>
Sat, 9 Apr 2022 16:28:32 +0000 (18:28 +0200)
committerFlorian Zschocke <f.zschocke+git@gmail.com>
Sat, 9 Apr 2022 16:28:32 +0000 (18:28 +0200)
For some reason the secret gate doesn't work and the main Gitblit
repo also attempts to deploy the nightly to Docker which must fail.

.github/workflows/nightly-build.yml

index 17c0940229fa0a96a060cfeb2b7bb4ef96c79c5a..2dec7ff247b729b22087dac554cc9f71d75e89fe 100644 (file)
@@ -111,6 +111,8 @@ jobs:
         run: |
           if [[ -n "${{secrets.DOCKERHUB_GB_TOKEN}}" && -n "${{secrets.DOCKERHUB_GB_USER}}" ]] ; then
             echo "::set-output name=secrets_present::true"
+          else
+            echo "No Docker Hub login data found. Skipping Docker."
           fi
 
 
@@ -121,7 +123,7 @@ jobs:
   docker:
     name: Build and push nightly docker image
     runs-on: ubuntu-latest
-    if: ${{needs.secret-gate.outputs.build_docker == 'true'}} && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
+    if: needs.secret-gate.outputs.build_docker == 'true' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop')
     needs: secret-gate
     env:
       GH_ORG: gitblit