diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 306e9b5c..4820cbdf 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -100,23 +100,19 @@ jobs: # set ref name tag for non-main branches type=raw,value=${{ github.ref_name }},enable=${{ github.ref_name != env.MAIN_BRANCH_NAME }} - name: Login to container registry - if: github.repository == 'Kuadrant/limitador' uses: docker/login-action@v2 with: username: ${{ secrets.IMG_REGISTRY_USERNAME }} password: ${{ secrets.IMG_REGISTRY_TOKEN }} registry: ${{ env.IMG_REGISTRY_HOST }} - name: Create manifest list and push - if: github.repository == 'Kuadrant/limitador' working-directory: /tmp/digests run: | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ $(printf '${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/limitador@sha256:%s ' $(find . -type f -exec basename {} \;)) - name: Inspect image - if: github.repository == 'Kuadrant/limitador' run: | docker buildx imagetools inspect ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/limitador:${{ steps.meta.outputs.version }} - name: Smoke Test - if: github.repository == 'Kuadrant/limitador' run: | docker run --rm -t ${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/limitador:${{ steps.meta.outputs.version }} limitador-server --help diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 5308208a..847ee72f 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -9,7 +9,6 @@ on: jobs: check: name: Check - if: github.repository == 'Kuadrant/limitador' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -24,7 +23,6 @@ jobs: test: name: Test Suite - if: github.repository == 'Kuadrant/limitador' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/license-scan.yaml b/.github/workflows/license-scan.yaml index e917d822..deea47e2 100644 --- a/.github/workflows/license-scan.yaml +++ b/.github/workflows/license-scan.yaml @@ -12,7 +12,7 @@ on: jobs: fossa-scan: name: Find license compliance and security issues - if: github.repository == 'Kuadrant/limitador' + if: github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a701561d..3bf8d7a4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,6 @@ on: jobs: publish: name: Publish Limitador crate to crates.io - if: github.repository == 'Kuadrant/limitador' runs-on: ubuntu-latest steps: - uses: abelfodil/protoc-action@v1