Skip to content

Commit

Permalink
feat(Docker, GH Actions): add build image workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bludnic committed Jan 9, 2024
1 parent c95f821 commit e74a6b7
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build Docker Image

on:
push:
branches:
- dev

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker Image
run: |
docker build
--build-arg DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
--build-arg NEXT_PUBLIC_PROCESSOR_URL=http://localhost:5000
--build-arg NEXT_PUBLIC_PROCESSOR_ENABLE_TRPC=true
--build-arg NEXT_PUBLIC_STATIC=true
-t opentrader/opentrader:latest .
- name: Push Docker Image
run: docker push opentrader/opentrader:latest

0 comments on commit e74a6b7

Please sign in to comment.