You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2024/01/25 17:39:41 UTC

(superset) branch fix_docker_again created (now cf4738899b)

This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a change to branch fix_docker_again
in repository https://gitbox.apache.org/repos/asf/superset.git


      at cf4738899b fix: docker should always run, even in forks

This branch includes the following new commits:

     new cf4738899b fix: docker should always run, even in forks

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(superset) 01/01: fix: docker should always run, even in forks

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch fix_docker_again
in repository https://gitbox.apache.org/repos/asf/superset.git

commit cf4738899b19ae98c2ce04ede884cad8f37630ca
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Thu Jan 25 09:37:39 2024 -0800

    fix: docker should always run, even in forks
    
    Realized that docker build should always runs, and simply not `--push`
    if we're not in `master` / don't have the creds.
    
    After this PR, docker will always run, though outside of the main fork,
    it won't push to docker hub.
---
 .github/workflows/docker.yml | 20 --------------------
 scripts/docker_build_push.sh |  2 ++
 2 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index 1a43ffdde3..f94d4c6f87 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -8,27 +8,7 @@ on:
     types: [synchronize, opened, reopened, ready_for_review]
 
 jobs:
-  config:
-    runs-on: "ubuntu-latest"
-    outputs:
-      has-secrets: ${{ steps.check.outputs.has-secrets }}
-    steps:
-      - name: "Check for secrets"
-        id: check
-        env:
-          DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
-          DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
-        run: |
-          if [[ -n "$DOCKERHUB_USER" && -n "$DOCKERHUB_TOKEN" ]]; then
-            echo "has-secrets=true" >> "$GITHUB_ENV"
-            echo "has secrets!"
-          else
-            echo "has-secrets=false" >> "$GITHUB_ENV"
-            echo "no secrets!"
-          fi
   docker-build:
-    needs: config
-    if: needs.config.outputs.has-secrets == 'true'
     name: docker-build
     runs-on: ubuntu-latest
     strategy:
diff --git a/scripts/docker_build_push.sh b/scripts/docker_build_push.sh
index 5ad7d2d999..de32203e0c 100755
--- a/scripts/docker_build_push.sh
+++ b/scripts/docker_build_push.sh
@@ -1,4 +1,6 @@
 #!/usr/bin/env bash
+    needs: config
+    if: needs.config.outputs.has-secrets == 'true'
 #
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with