diff --git a/.github/workflows/build-clio-docker-image.yml b/.github/workflows/build-clio-docker-image.yml index bad4f53f3..0324f815a 100644 --- a/.github/workflows/build-clio-docker-image.yml +++ b/.github/workflows/build-clio-docker-image.yml @@ -14,9 +14,9 @@ on: type: boolean description: Whether to strip clio binary default: true - publish_image: + push_image: type: boolean - description: Whether to publish docker image + description: Whether to push docker image required: true workflow_dispatch: @@ -43,7 +43,7 @@ defaults: shell: bash jobs: - build_and_publish_image: + build_and_push_image: name: Build and publish image runs-on: ubuntu-latest @@ -102,7 +102,7 @@ jobs: images: | ghcr.io/${{ steps.set-ghcr-repo.outputs.GHCR_REPO }}/clio ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio' || '' }} - push_image: ${{ inputs.publish_image }} + push_image: ${{ inputs.push_image }} directory: docker/clio tags: ${{ inputs.tags }} platforms: linux/amd64 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index fa328edef..0496685c1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -55,6 +55,7 @@ jobs: name: docs-develop deploy: + if: ${{ github.repository == 'XRPLF/clio' && github.event_name == 'push' }} needs: build permissions: pages: write diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index fc104ec5d..218982802 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -157,7 +157,7 @@ jobs: type=raw,value=${{ github.sha }} artifact_name: clio_server_Linux_Release_gcc strip_binary: true - publish_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} create_issue_on_failure: needs: [build-and-test, nightly_release, build_and_publish_docker_image] diff --git a/.github/workflows/reusable-upload-coverage-report.yml b/.github/workflows/reusable-upload-coverage-report.yml index cb7f5878e..98de96e99 100644 --- a/.github/workflows/reusable-upload-coverage-report.yml +++ b/.github/workflows/reusable-upload-coverage-report.yml @@ -27,7 +27,7 @@ jobs: path: build - name: Upload coverage report - if: ${{ hashFiles('build/coverage_report.xml') != '' }} + if: ${{ github.repository == 'XRPLF/clio' && hashFiles('build/coverage_report.xml') != '' }} uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 with: files: build/coverage_report.xml diff --git a/.github/workflows/update-docker-ci.yml b/.github/workflows/update-docker-ci.yml index b434b18a8..0952c0187 100644 --- a/.github/workflows/update-docker-ci.yml +++ b/.github/workflows/update-docker-ci.yml @@ -74,7 +74,7 @@ jobs: images: | ${{ needs.repo.outputs.GHCR_REPO }}/clio-gcc ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }} - push_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} directory: docker/compilers/gcc tags: | type=raw,value=amd64-latest @@ -112,7 +112,7 @@ jobs: images: | ${{ needs.repo.outputs.GHCR_REPO }}/clio-gcc ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_gcc' || '' }} - push_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} directory: docker/compilers/gcc tags: | type=raw,value=arm64-latest @@ -201,7 +201,7 @@ jobs: images: | ${{ needs.repo.outputs.GHCR_REPO }}/clio-clang ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_clang' || '' }} - push_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} directory: docker/compilers/clang tags: | type=raw,value=latest @@ -234,7 +234,7 @@ jobs: with: images: | ${{ needs.repo.outputs.GHCR_REPO }}/clio-tools - push_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} directory: docker/tools tags: | type=raw,value=amd64-latest @@ -265,7 +265,7 @@ jobs: with: images: | ${{ needs.repo.outputs.GHCR_REPO }}/clio-tools - push_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} directory: docker/tools tags: | type=raw,value=arm64-latest @@ -323,7 +323,7 @@ jobs: with: images: | ${{ needs.repo.outputs.GHCR_REPO }}/clio-pre-commit - push_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} directory: docker/pre-commit tags: | type=raw,value=latest @@ -348,7 +348,7 @@ jobs: images: | ${{ needs.repo.outputs.GHCR_REPO }}/clio-ci ${{ github.repository_owner == 'XRPLF' && 'rippleci/clio_ci' || '' }} - push_image: ${{ github.event_name != 'pull_request' }} + push_image: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} directory: docker/ci tags: | type=raw,value=latest diff --git a/.github/workflows/upload-conan-deps.yml b/.github/workflows/upload-conan-deps.yml index c8ea52ffe..b630f00c9 100644 --- a/.github/workflows/upload-conan-deps.yml +++ b/.github/workflows/upload-conan-deps.yml @@ -101,12 +101,12 @@ jobs: force_conan_source_build: ${{ github.event_name == 'schedule' || github.event.inputs.force_source_build == 'true' }} build_type: ${{ matrix.build_type }} - - name: Login to Conan - if: ${{ github.repository_owner == 'XRPLF' && github.event_name != 'pull_request' }} + - name: Log into Conan remote + if: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' }} run: conan remote login -p ${{ secrets.CONAN_PASSWORD }} xrplf ${{ secrets.CONAN_USERNAME }} - name: Upload Conan packages - if: ${{ github.repository_owner == 'XRPLF' && github.event_name != 'pull_request' && github.event_name != 'schedule' }} + if: ${{ github.repository == 'XRPLF/clio' && github.event_name != 'pull_request' && github.event_name != 'schedule' }} env: FORCE_OPTION: ${{ github.event.inputs.force_upload == 'true' && '--force' || '' }} run: conan upload "*" -r=xrplf --confirm ${FORCE_OPTION}