Skip to content

Commit c19c03d

Browse files
authored
Merge pull request #18 from Baker/v1.0.0
better docs, starting on dokploy provider, updating to golang 1.26.3
2 parents bd307b6 + f656ec1 commit c19c03d

15 files changed

Lines changed: 280 additions & 191 deletions

File tree

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
LISTEN=0.0.0.0:25
2-
LISTEN_TLS=0.0.0.0:587
1+
LISTEN_ADDR=0.0.0.0:25
2+
LISTEN_ADDR_TLS=0.0.0.0:587
33
WEBHOOK_URL=http://localhost:8080/webhook
44
WEBHOOK_USER=
55
WEBHOOK_PASS=

.github/workflows/release.yml

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
packages: write
1011

1112
jobs:
1213
build-and-upload:
@@ -39,7 +40,7 @@ jobs:
3940
BIN_NAME=inboundparse
4041
if [ "${{ matrix.goos }}" = "windows" ]; then BIN_NAME="${BIN_NAME}.exe"; fi
4142
mkdir -p dist
42-
go build -trimpath -ldflags "-s -w" -o "dist/${BIN_NAME}-${{ matrix.goos }}-${{ matrix.goarch }}" ./
43+
go build -trimpath -ldflags "-s -w" -o "dist/${BIN_NAME}-${{ matrix.goos }}-${{ matrix.goarch }}" ./cmd/inboundparse
4344
4445
- name: Upload artifact
4546
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
@@ -70,3 +71,46 @@ jobs:
7071
files: assets/*
7172
env:
7273
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
75+
build-and-push-image:
76+
name: Build and push Docker image (GHCR)
77+
runs-on: ubuntu-latest
78+
steps:
79+
- name: Checkout
80+
uses: actions/checkout@v6.0.2
81+
82+
- name: Set up Docker Buildx
83+
uses: docker/setup-buildx-action@v4.0.0
84+
85+
- name: Log in to GitHub Container Registry
86+
uses: docker/login-action@v4.1.0
87+
with:
88+
registry: ghcr.io
89+
username: ${{ github.actor }}
90+
password: ${{ secrets.GITHUB_TOKEN }}
91+
92+
- name: Docker image name (GHCR requires lowercase)
93+
id: image
94+
run: echo "name=ghcr.io/$(echo '${{ github.repository }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
95+
96+
- name: Docker metadata (tags and labels)
97+
id: meta
98+
uses: docker/metadata-action@v6.0.0
99+
with:
100+
images: ${{ steps.image.outputs.name }}
101+
tags: |
102+
type=semver,pattern={{version}}
103+
type=semver,pattern={{major}}.{{minor}}
104+
type=semver,pattern={{major}}
105+
type=raw,value=latest,enable=true
106+
107+
- name: Build and push
108+
uses: docker/build-push-action@v6.10
109+
with:
110+
context: .
111+
push: true
112+
tags: ${{ steps.meta.outputs.tags }}
113+
labels: ${{ steps.meta.outputs.labels }}
114+
platforms: linux/amd64,linux/arm64
115+
cache-from: type=gha
116+
cache-to: type=gha,mode=max

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Build stage
2-
# Official images publish 1.26.2-alpine / 1.26.2-alpine3.22+ — not alpine3.21.
3-
FROM golang:1.26.2-alpine AS builder
2+
# Official images publish 1.26.3-alpine / 1.26.3-alpine3.22+ — not alpine3.21.
3+
FROM golang:1.26.3-alpine AS builder
44

55
WORKDIR /app
66

0 commit comments

Comments
 (0)