Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading