Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansbk committed Dec 18, 2023
1 parent 3e3cb6a commit d50a129
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:

jobs:
test_and_build:
env:
DOTENV_ME: ${{ secrets.DOTENV_ME }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
DOTENV_KEY: ${{ secrets.DOTENV_KEY }}
TEST: "HELLO"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -20,8 +25,6 @@ jobs:
run: yarn
- name: Run tests
run: yarn test
env:
DOTENV_KEY: ${{ secrets.DOTENV_KEY }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand All @@ -30,16 +33,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
env:
DOTENV_ME: ${{ secrets.DOTENV_ME }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
TEST: "HELLO"
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 }}

0 comments on commit d50a129

Please sign in to comment.