From f2bbb6f4073ae5b0076d869617cf784504062e95 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Mon, 25 Nov 2024 09:45:47 -0800 Subject: [PATCH] ci: disable publishing PR images to docker hub Docker hub is rate limiting our API access, as a result tests are failing for no apparent reason. This change will decrease the API calls by at least 80% We have applied for an Open Source account with greater API limits, I will come back to this and update as necessary when and if they grant us access to their program. --- .github/workflows/dev_container.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dev_container.yml b/.github/workflows/dev_container.yml index cf88648207..fa00925659 100644 --- a/.github/workflows/dev_container.yml +++ b/.github/workflows/dev_container.yml @@ -27,6 +27,7 @@ jobs: - name: Login to Docker Hub uses: docker/login-action@v3 + if: github.event_name != 'pull_request' with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -44,7 +45,7 @@ jobs: with: images: | ghcr.io/PX4/px4-dev - px4io/px4-dev + ${{ (github.event_name != 'pull_request') && 'px4io/px4-dev' || '' }} tags: | type=schedule type=semver,pattern={{version}}