diff --git a/.github/workflows/docker-ghcr.yaml b/.github/workflows/docker-ghcr.yaml new file mode 100644 index 0000000..46a8d6c --- /dev/null +++ b/.github/workflows/docker-ghcr.yaml @@ -0,0 +1,16 @@ +name: Build and publish a Docker image to ghcr.io +on: + push: + branches: + - main + +jobs: + docker_publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Build and publish a Docker image for ${{ github.repository }} + uses: macbre/push-to-ghcr@master # https://github.com/marketplace/actions/push-to-ghcr + with: + image_name: ${{ github.repository }} # it will be lowercased internally + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index f072823..ad2e30f 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,10 @@ Then, run the Docker container: docker run -p 8000:8000 cloudflare-bypass ``` +Alternatively, you can skip `docker build` step, and run the container using pre-build image: +```bash +docker run -p 8000:8000 ghcr.io/sarperavci/CloudflareBypassForScraping:latest +``` # What is this not?