2
0
Эх сурвалжийг харах

update to run migrations built in container

Stefan McShane 3 жил өмнө
parent
commit
e7dacdc176

+ 5 - 3
.github/workflows/production.yaml

@@ -1,8 +1,10 @@
 name: Deploy to production
 on:
   push:
-    tags:
-      - production
+    # tags:
+    #   - production
+    branches:
+      - test-migrations-2
 jobs:
   deploy:
     runs-on: ubuntu-latest
@@ -66,7 +68,7 @@ jobs:
           DB_PASS: ${{ secrets.DB_PASS }}
           DB_NAME: ${{ secrets.DB_NAME }}
         run: |
-          docker run -it -e DB_HOST=$DB_HOST -e DB_PORT=$DB_PORT -e DB_USER=$DB_USER -e DB_PASS=$DB_PASS -e DB_NAME=$DB_NAME gcr.io/porter-dev-273614/porter:latest /porter/migrate
+          docker run -e DB_HOST=$DB_HOST -e DB_PORT=$DB_PORT -e DB_USER=$DB_USER -e DB_PASS=$DB_PASS -e DB_NAME=$DB_NAME gcr.io/porter-dev-273614/porter:latest /porter/migrate
       - name: Deploy to cluster
         run: |
           aws eks --region ${{ secrets.AWS_REGION }} update-kubeconfig --name production-2