diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml new file mode 100644 index 0000000..10d4b07 --- /dev/null +++ b/.github/workflows/ci-cd.yaml @@ -0,0 +1,47 @@ +name: CI/CD + +on: + workflow_dispatch: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build-client: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + - name: Build and push client + uses: docker/build-push-action@v5 + with: + context: ./stock-trading-client + file: ./stock-trading-client/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: | + ghcr.io/${{ github.repository_owner }}/stock-trading-client:${{ github.sha }} + ghcr.io/${{ github.repository_owner }}/stock-trading-client:latest + + build-server: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.CR_PAT }} + - name: Build and push server + uses: docker/build-push-action@v5 + with: + context: . # root context to access client/lib + file: ./stock-trading-server/Dockerfile + push: ${{ github.event_name != 'pull_request' }} + tags: | + ghcr.io/${{ github.repository_owner }}/stock-trading-server:${{ github.sha }} + ghcr.io/${{ github.repository_owner }}/stock-trading-server:latest \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f05e945 --- /dev/null +++ b/.gitignore @@ -0,0 +1,33 @@ +# IntelliJ IDEA +.idea/ +*.iml + +# Build artifacts +target/ +*.jar +*.war +*.ear + +# Logs +*.log +compile.log + +# Backups +*.bak +*.backup +*.txt.bak +*.properties.bak +*.json.bak + +# OS metadata +.DS_Store +Thumbs.db + +# Maven wrapper (keep mvnw, ignore the jar) +.mvn/wrapper/maven-wrapper.jar + +# Protoc plugins (downloaded by Maven) +**/protoc-plugins/ + +# PowerShell scripts +*.ps1 diff --git a/bulk-order.html b/bulk-order.html deleted file mode 100644 index 5152055..0000000 --- a/bulk-order.html +++ /dev/null @@ -1,191 +0,0 @@ - - - -
- - -📭 No orders submitted yet.
-