diff --git a/.github/workflows/build_and_push.yml b/.github/workflows/build_and_push.yml index 7605ab3..b8ff47d 100644 --- a/.github/workflows/build_and_push.yml +++ b/.github/workflows/build_and_push.yml @@ -35,7 +35,7 @@ jobs: - name: Build and push jobwatcher Docker image id: jobwatcher_build - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: file: ./container/job_watcher.Dockerfile push: true @@ -50,19 +50,19 @@ jobs: - name: Build and push jobcreator Docker image id: jobcreator_build - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: file: ./container/job_creator.Dockerfile push: true tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/jobcreator:${{ github.sha }} - name: Edit the YAML jobcreator.yml file for staging for jobwatcher - uses: mikefarah/yq@v4.44.1 + uses: mikefarah/yq@v4.44.3 with: cmd: yq e -i '.spec.template.spec.containers[] |= (select(.name == "jobcreator") | .env[] |= select(.name == "WATCHER_SHA").value = "${{ steps.remove_sha256_watcher.outputs.digest }}")' './components/jobcreator/envs/staging/jobcreator.yml' - name: Edit the YAML jobcreator.yml file for staging for jobcreator - uses: mikefarah/yq@v4.44.1 + uses: mikefarah/yq@v4.44.3 with: cmd: yq e -i '.spec.template.spec.containers[] |= select(.name == "jobcreator").image = "ghcr.io/fiaisis/jobcreator@${{ steps.jobcreator_build.outputs.digest }}"' './components/jobcreator/envs/staging/jobcreator.yml' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0121bf0..c318145 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,7 +23,7 @@ jobs: run: pytest ./job_creator --random-order --random-order-bucket=global --ignore=test/database/test_db_updater_integration.py --cov --cov-report=xml - name: Upload coverage - uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 + uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -48,6 +48,6 @@ jobs: run: pytest ./job_watcher --random-order --random-order-bucket=global --ignore=test/database/test_db_updater_integration.py --cov --cov-report=xml - name: Upload coverage - uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # v4.4.1 + uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index 2566633..ba57314 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -34,7 +34,7 @@ jobs: uses: actions/checkout@v4 - name: Build Docker image - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: file: ./container/${{ matrix.dockerfile }} tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ matrix.image_name }}:${{ github.sha }}