diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..b0184eea --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,34 @@ +name: Docker Image CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-container: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v3 + with: + images: tehniemer/caddyreauth + + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/php/Dockerfile b/php/Dockerfile index 5c2935c3..3b9d008a 100644 --- a/php/Dockerfile +++ b/php/Dockerfile @@ -4,7 +4,7 @@ FROM abiosoft/caddy:builder as builder ARG version="1.0.3" -ARG plugins="git,cors,realip,expires,cache,cloudflare" +ARG plugins="git,cors,realip,expires,cache,cloudflare,reauth" ARG enable_telemetry="true" # Process Wrapper