Skip to content

Commit

Permalink
Add docker release step
Browse files Browse the repository at this point in the history
  • Loading branch information
gtuk committed Jun 7, 2021
1 parent 3038e1b commit 5f52783
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,31 @@ permissions:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
11 changes: 11 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ archives:
format_overrides:
- goos: windows
format: zip
dockers:
- goos: linux
goarch: amd64
ids: ["rotoxy"]
image_templates:
- "gtuk/rotoxy:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
- "gtuk/rotoxy:{{ .Major }}.{{ .Minor }}"
- "gtuk/rotoxy:{{ .Major }}"
- "gtuk/rotoxy:latest"
use_buildx: true
dockerfile: Dockerfile
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.13.5

RUN apk update && apk add tor

COPY rotoxy /

ENTRYPOINT ["/rotoxy"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Rotoxy

A rotating tor proxy service that starts a configurable number of tor socks proxies and expose them under one reverse proxy (http).
The tor proxy socks proxies are randomly selected by the reverse proxy
The tor socks proxies are randomly selected by the reverse proxy

### Prerequisites
In order to use the tool you need have Tor installed on the machine
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.1"
services:
app:
build:
context: ./dist/goreleaserdocker024990387
dockerfile: Dockerfile
command: "-tors=3"

0 comments on commit 5f52783

Please sign in to comment.