Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansbk committed Dec 18, 2023
1 parent 920f675 commit 9960334
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ 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:
context: .
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 }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9960334

Please sign in to comment.