|
12 | 12 | uses: ./.github/workflows/static-code-analysis.yml |
13 | 13 | with: |
14 | 14 | coverage_artifact: true |
| 15 | + |
| 16 | + #sonarqube-analysis: |
| 17 | + #needs: static-code-analysis |
| 18 | + #runs-on: ubuntu-latest |
| 19 | + #steps: |
| 20 | + #- uses: actions/checkout@v4 |
| 21 | + |
| 22 | + #- name: Download coverage report |
| 23 | + #uses: actions/download-artifact@v4 |
| 24 | + #with: |
| 25 | + #name: coverage-report |
| 26 | + #path: coverage-artifacts # cov artifacts will be on coverage-artifacts/ folder |
| 27 | + |
| 28 | + #- name: Run SonarQube Scan |
| 29 | + #uses: SonarSource/sonarqube-scan-action@v5.0.0 |
| 30 | + #env: |
| 31 | + #GITHUB_TOKEN: ${{ }} |
| 32 | + #SONAR_TOKEN: ${{ }} |
| 33 | + #with: |
| 34 | + #args: > |
| 35 | + #-Dsonar.python.coverage.reportPaths=coverage-artifacts/coverage.xml |
| 36 | + |
| 37 | + run-integration-tests: |
| 38 | + needs: static-code-analysis # TODO: need sonarqube |
| 39 | + uses: ./.github/workflows/integration-tests.yml |
| 40 | + with: |
| 41 | + deployment_env: 'local' |
| 42 | + |
| 43 | + build-and-push-register-ticket-api: |
| 44 | + needs: run-integration-tests |
| 45 | + runs-on: ubuntu-latest |
| 46 | + permissions: |
| 47 | + contents: read |
| 48 | + packages: write # lets write Docker image to GHCR |
| 49 | + steps: |
| 50 | + - uses: actions/checkout@v4 |
| 51 | + |
| 52 | + - name: Log in Github container registry |
| 53 | + uses: docker/login-action@v3 |
| 54 | + with: |
| 55 | + registry: ghcr.io |
| 56 | + username: ${{ github.actor }} |
| 57 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 58 | + |
| 59 | + - name: Build and push Docker image to GHCR |
| 60 | + uses: docker/build-push-action@v5 |
| 61 | + with: |
| 62 | + context: . |
| 63 | + file: docker/Dockerfile.register-ticket-api |
| 64 | + push: true |
| 65 | + tags: | |
| 66 | + ghcr.io/${{ github.repository_owner }}/register-ticket-api:latest |
| 67 | + ghcr.io/${{ github.repository_owner }}/register-ticket-api:${{ github.sha }} |
0 commit comments