diff --git a/.github/workflows/sonarquest-ci.yml b/.github/workflows/sonarquest-ci.yml index 5a7d82b5..4181f94c 100644 --- a/.github/workflows/sonarquest-ci.yml +++ b/.github/workflows/sonarquest-ci.yml @@ -29,14 +29,14 @@ jobs: run: mvn -f ./sonarQuest-backend/pom.xml --batch-mode --update-snapshots verify - name: Login to GitHub Container Registry uses: docker/login-action@v1 - if: github.event_name == 'release' + if: ${{ github.event_name == 'release' }} with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image uses: docker/build-push-action@v2 - if: github.event_name == 'release' + if: ${{ github.event_name == 'release' }} with: context: ./sonarQuest-backend push: true @@ -79,14 +79,14 @@ jobs: npm test - name: Login to GitHub Container Registry uses: docker/login-action@v1 - if: github.event_name == 'release' + if: ${{ github.event_name == 'release' }} with: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push Docker image uses: docker/build-push-action@v2 - if: github.event_name == 'release' + if: ${{ github.event_name == 'release' }} with: context: ./sonarQuest-frontend push: true