diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9f85e12..b0f74ee4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,12 +23,14 @@ jobs: - run: npm --prefix userStatsService ci - run: npm --prefix gameservice ci - run: npm --prefix gameservice ci + - run: npm --prefix apisgatewayservice ci - run: npm --prefix users/authservice test -- --coverage - run: npm --prefix users/userservice test -- --coverage - run: npm --prefix gatewayservice test -- --coverage - run: npm --prefix webapp test -- --coverage - run: npm --prefix storeQuestionService test -- --coverage - run: npm --prefix userStatsService test -- --coverage + - run: npm --prefix apisgatewayservice test -- --coverage # - run: npm --prefix gameservice test -- --coverage - name: Analyze with SonarCloud uses: sonarsource/sonarcloud-github-action@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ff86a356..2198ff17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,12 +20,14 @@ jobs: - run: npm --prefix userStatsService ci - run: npm --prefix webapp ci - run: npm --prefix gameservice ci + - run: npm --prefix apisgatewayservice ci - run: npm --prefix users/authservice test -- --coverage - run: npm --prefix users/userservice test -- --coverage - run: npm --prefix gatewayservice test -- --coverage - run: npm --prefix webapp test -- --coverage - run: npm --prefix storeQuestionService test -- --coverage - run: npm --prefix userStatsService test -- --coverage + - run: npm --prefix apisgatewayservice test -- --coverage #- run: npm --prefix gameservice test -- --coverage - name: Analyze with SonarCloud uses: sonarsource/sonarcloud-github-action@master @@ -229,6 +231,26 @@ jobs: registry: ghcr.io workdir: gameservice platforms: linux/arm64 + docker-push-apisgatewayservice: + name: Push apis gateway service Docker Image to GitHub Packages + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + needs: [e2e-tests] + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - uses: actions/checkout@v4 + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: arquisoft/wiq_es6c/apisgatewayservice + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + workdir: apisgatewayservice + platforms: linux/arm64 deploy: name: Deploy over SSH runs-on: ubuntu-latest