refactor: Standardize webapp to use DIContainer dependency injection #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: | |
| - 'v*' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| - name: Build WAR file | |
| run: mvn clean package -DskipTests | |
| - name: Deploy to staging | |
| run: | | |
| echo "Deployment would occur here" | |
| echo "Built WAR: target/*.war" | |
| # Add actual deployment steps (e.g., SCP, Docker push, etc.) |