Parcourir la source

update to run migrations built in container

Stefan McShane il y a 3 ans
Parent
commit
e7dacdc176
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      .github/workflows/production.yaml

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

@@ -1,8 +1,10 @@
 name: Deploy to production
 name: Deploy to production
 on:
 on:
   push:
   push:
-    tags:
-      - production
+    # tags:
+    #   - production
+    branches:
+      - test-migrations-2
 jobs:
 jobs:
   deploy:
   deploy:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
@@ -66,7 +68,7 @@ jobs:
           DB_PASS: ${{ secrets.DB_PASS }}
           DB_PASS: ${{ secrets.DB_PASS }}
           DB_NAME: ${{ secrets.DB_NAME }}
           DB_NAME: ${{ secrets.DB_NAME }}
         run: |
         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
       - name: Deploy to cluster
         run: |
         run: |
           aws eks --region ${{ secrets.AWS_REGION }} update-kubeconfig --name production-2
           aws eks --region ${{ secrets.AWS_REGION }} update-kubeconfig --name production-2