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
40 changes: 0 additions & 40 deletions .github/workflows/dockerhub-push.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🎉 Release Binary
name: 🎉 Release

on:
push:
Expand All @@ -12,20 +12,24 @@ jobs:
steps:
- name: "Check out code"
uses: actions/checkout@v7
with:
with:
fetch-depth: 0

- name: "Set up Go"
uses: actions/setup-go@v7
with:
uses: projectdiscovery/actions/setup/go@v1
with:
go-version: 1.25.x

- name: "Login to DockerHub"
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: "Create release on GitHub"
uses: goreleaser/goreleaser-action@v7
with:
args: "release --clean"
version: latest
workdir: .
uses: projectdiscovery/actions/goreleaser@v1
with:
release: true
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
SLACK_WEBHOOK: "${{ secrets.RELEASE_SLACK_WEBHOOK }}"
Expand Down
33 changes: 32 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
version: 2

before:
hooks:
- go mod tidy

builds:
- binary: proxify
main: cmd/proxify/proxify.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
Expand All @@ -23,6 +27,8 @@ builds:

- binary: replay
main: cmd/replay/replay.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
Expand All @@ -41,6 +47,8 @@ builds:

- binary: mitmrelay
main: cmd/mitmrelay/mitmrelay.go
env:
- CGO_ENABLED=0
goos:
- linux
- windows
Expand All @@ -58,13 +66,36 @@ builds:
id: mitmrelay

archives:
- format: zip
- formats: [zip]
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'


checksum:
algorithm: sha256

dockers_v2:
- images:
- projectdiscovery/proxify
ids:
- proxify
tags:
- "{{ .Tag }}"
- "v{{ .Major }}.{{ .Minor }}"
- "v{{ .Major }}"
- latest
labels:
org.opencontainers.image.created: "{{ .Date }}"
org.opencontainers.image.ref.name: "{{ .Tag }}"
org.opencontainers.image.revision: "{{ .FullCommit }}"
org.opencontainers.image.version: "{{ .Version }}"
platforms:
- linux/amd64
- linux/arm64
- linux/arm/v6
# NOTE: release-test runs a snapshot on runners without QEMU; only build images
# in CI on real releases.
disable: '{{ and .IsSnapshot (isEnvSet "CI") }}'

announce:
slack:
enabled: true
Expand Down
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Base
FROM golang:1.24.0-alpine AS builder
FROM alpine:latest

RUN apk add --no-cache git build-base
WORKDIR /app
COPY . /app
RUN go mod download
RUN go build ./cmd/proxify
LABEL org.opencontainers.image.authors="ProjectDiscovery"
LABEL org.opencontainers.image.description="Swiss Army Knife Proxy for rapid deployments. Supports multiple operations such as request/response dump, filtering and manipulation via DSL language, upstream HTTP/SOCKS5 proxy."
LABEL org.opencontainers.image.licenses="MIT"
LABEL org.opencontainers.image.title="proxify"
LABEL org.opencontainers.image.url="https://github.com/projectdiscovery/proxify"

FROM alpine:3.18.2
RUN apk -U upgrade --no-cache \
&& apk add --no-cache bind-tools ca-certificates
COPY --from=builder /app/proxify /usr/local/bin/

ARG TARGETPLATFORM
COPY $TARGETPLATFORM/proxify /usr/local/bin/

ENTRYPOINT ["proxify"]