Przeglądaj źródła

Enable docker push

Akinori MUSHA 3 lat temu
rodzic
commit
05d1210dd1
1 zmienionych plików z 5 dodań i 6 usunięć
  1. 5 6
      .github/workflows/ci.yml

+ 5 - 6
.github/workflows/ci.yml

@@ -44,7 +44,6 @@ jobs:
           POSTGRES_PASSWORD: password
         ports:
           - 5432:5432
-        # Set health checks to wait until postgres has started
         options: >-
           --health-cmd pg_isready
           --health-interval 10s
@@ -87,8 +86,8 @@ jobs:
 
       - name: Build a docker image
         run: |
-          # if [ "$GITHUB_EVENT_NAME" = push -a "$GITHUB_REF_NAME" = master ]; then
-          #   ./build_docker_image.sh --push
-          # else
-          ./build_docker_image.sh
-          # fi
+          if [ "$GITHUB_EVENT_NAME" = push -a "$GITHUB_REF_NAME" = master ]; then
+            ./build_docker_image.sh --push
+          else
+            ./build_docker_image.sh
+          fi