diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a696bfd..173f578 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,27 +36,34 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Codebase - uses: actions/checkout@v2 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: sonarsource/sonarqube-scan-action@v3 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - name: Login to ghcr.io run: echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u soup-bowl --password-stdin - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USER }} password: ${{ secrets.DOCKER_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 - name: Build for Development if: ${{ github.ref_name == 'edge' }} - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: push: true tags: soupbowl/hot-this-week:edge,ghcr.io/soup-bowl/hot-this-week:edge @@ -64,7 +71,7 @@ jobs: - name: Build for Production if: ${{ github.ref_name == 'main' }} - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v6 with: push: true tags: soupbowl/hot-this-week:latest,ghcr.io/soup-bowl/hot-this-week:latest diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..47086d7 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1 @@ +sonar.projectKey=soup-bowl_hot-this-week_af12a48e-6fc3-428d-98d3-9f1e212f4fac