Kaynağa Gözat

update to run migrations built in container

Stefan McShane 3 yıl önce
ebeveyn
işleme
ec794e3071
1 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 4 1
      .github/workflows/production.yaml

+ 4 - 1
.github/workflows/production.yaml

@@ -68,7 +68,10 @@ jobs:
           DB_PASS: ${{ secrets.DB_PASS }}
           DB_NAME: ${{ secrets.DB_NAME }}
         run: |
-          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
+          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 \
+          env | grep DB_
       - name: Deploy to cluster
         run: |
           aws eks --region ${{ secrets.AWS_REGION }} update-kubeconfig --name production-2