diff --git a/.github/workflows/release-binaries.yaml b/.github/workflows/release-binaries.yaml new file mode 100644 index 0000000..e2191a0 --- /dev/null +++ b/.github/workflows/release-binaries.yaml @@ -0,0 +1,40 @@ +name: release binaries + +on: + push: + #branches: + # - master + + # Publish `v1.2.3` tags as releases. + tags: + - v* + workflow_dispatch: + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - + name: Set version + run: | + echo -n $(git describe --tags --abbrev=0) > cmd/VERSION + - + name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.21 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GORELEASER_GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7a86d8b..fdf1127 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ # dev binary -ladder \ No newline at end of file +ladder + +VERSION \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..30140b5 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,42 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy +builds: + - + main: cmd/main.go + binary: kubero + env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin +archives: + - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" + format_overrides: + - goos: windows + format: zip +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^public:' + - '^.github:' +#brews: +# - +# repository: +# owner: kubero-dev +# name: homebrew-ladder +# token: "{{ .Env.GORELEASER_GITHUB_TOKEN }}" +# homepage: "https://www.kubero.dev" +# description: "Manage your kubero applications with the CLI" +# test: | +# system "#{bin}/kubero", "--version" \ No newline at end of file diff --git a/README.md b/README.md index cfe8a29..1bde029 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

Ladder

-*Ladder is a web proxy to help bypass paywalls.* This is a selfhosted version of [1ft.io](1ft.io) and [12ft.io](https://12ft.io). It is inspired by [13ft](https://github.com/wasi-master/13ft). +*Ladder is a web proxy to help bypass paywalls.* This is a selfhosted version of [1ft.io](https://1ft.io) and [12ft.io](https://12ft.io). It is inspired by [13ft](https://github.com/wasi-master/13ft). ### Why @@ -33,6 +33,12 @@ Some site might have missing images or other formating issues. This is due to th docker run -p 8080:8080 -d --name ladder ghcr.io/kubero-dev/ladder:latest ``` +### Docker Compose +```bash +wget https://raw.githubusercontent.com/kubero-dev/ladder/main/docker-compose.yml +docker-compose up -d +``` + ## Configuration ### Environment Variables diff --git a/docker-compose.yaml b/docker-compose.yaml index 7cf3e07..5eba5b5 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,8 +1,9 @@ version: '3' services: ladder: - build: . + image: ghcr.io/kubero-dev/ladder:latest container_name: ladder + build: . #restart: always #command: tail -f /dev/null command: sh -c ./ladder