diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b58345..8b548b5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,8 +29,6 @@ jobs: password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - env: - DOTENV_ME: ${{ secrets.DOTENV_ME }} - name: Build and push uses: docker/build-push-action@v3 with: @@ -38,3 +36,6 @@ jobs: file: ./Dockerfile push: true tags: ${{ secrets.DOCKER_HUB_USERNAME }}/${{ github.repository }}:${{ github.ref_name }} + secrets: | + DOTENV_ME=${{ secrets.DOTENV_ME }} + DATABASE_URL=${{ secrets.DATABASE_URL }} diff --git a/Dockerfile b/Dockerfile index bc187f6..44f7894 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,8 @@ COPY ./prisma ./prisma COPY ./assets ./assets COPY .env.vault ./ RUN echo $DOTENV_ME -RUN npx dotenv-vault pull production --dotenvMe=$DOTENV_ME -RUN mv .env.production .env +# RUN npx dotenv-vault pull production --dotenvMe=$DOTENV_ME +# RUN mv .env.production .env RUN yarn db:deploy EXPOSE 4000 CMD yarn start \ No newline at end of file