From 5f0fbf24946ced81276c36eb60f1af8b30629c07 Mon Sep 17 00:00:00 2001 From: Anton Engelhardt Date: Sat, 5 Sep 2026 17:09:51 +0200 Subject: [PATCH] Drop the Docker Hub image job; GHCR is what the cluster pulls The docker-image job failed every PR: DOCKERHUB_USERNAME/PASSWORD are unset. Co-authored-by: Cursor --- .github/workflows/build.yml | 26 ------------------------- .github/workflows/release.yml | 34 --------------------------------- .github/workflows/test.yml | 36 ----------------------------------- 3 files changed, 96 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8146e75..37148e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,32 +31,6 @@ jobs: name: plugin path: target/wasm32-wasip1/release/basic_auth_plugin.wasm - docker-image: - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: antonengelhardt/basic-auth-plugin:latest - cache-from: type=registry,ref=antonengelhardt/basic-auth-plugin:latest - cache-to: type=inline - ghcr-image: runs-on: ubuntu-latest needs: [build] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed43490..af1bb50 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,40 +29,6 @@ jobs: name: basic_auth_plugin.wasm path: target/wasm32-wasip1/release/basic_auth_plugin.wasm - docker-image: - name: Build and push Docker image - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Extract version from Github Ref - id: extract_version - run: | - echo VERSION=$(echo ${{ github.ref }} | grep -o "v[0-9]\+\.[0-9]\+\.[0-9]\+") >> $GITHUB_ENV - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: | - antonengelhardt/basic-auth-plugin:${{ env.VERSION }} - antonengelhardt/basic-auth-plugin:latest - cache-from: type=registry,ref=antonengelhardt/basic-auth-plugin:latest - cache-to: type=inline - ghcr-image: name: Build and push GHCR image runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 052cd42..2937217 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -161,42 +161,6 @@ jobs: name: plugin path: target/wasm32-wasip1/release/basic_auth_plugin.wasm - docker-image: - runs-on: ubuntu-latest - if: github.event.pull_request.head.repo.full_name == github.repository - permissions: - contents: read - actions: write - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Sanitize branch name for image tag - id: image_tag - env: - BRANCH_REF: ${{ github.event.pull_request.head.ref }} - run: | - sanitized="$(printf '%s' "$BRANCH_REF" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]/-/g')" - echo "tag=pr-${sanitized}" >> "$GITHUB_OUTPUT" - - - name: Login to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Build and push - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: antonengelhardt/basic-auth-plugin:${{ steps.image_tag.outputs.tag }} - cache-from: type=registry,ref=antonengelhardt/basic-auth-plugin:${{ steps.image_tag.outputs.tag }} - cache-to: type=inline - ghcr-image: runs-on: ubuntu-latest if: github.event.pull_request.head.repo.full_name == github.repository