You've already forked img-proxy-url-generator
Compare commits
11 Commits
2b1e5561a0
...
v1.5.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
2b865568c0
|
|||
|
05fc22e966
|
|||
|
6159a1509d
|
|||
|
e86c892b8f
|
|||
|
61f42c5297
|
|||
|
17971f34c1
|
|||
|
d66dbe89cb
|
|||
|
9af291f4d2
|
|||
|
3a61962c04
|
|||
|
7a8d0714f5
|
|||
|
bcd287b3b3
|
47
.gitea/workflows/build-grpc.yml
Normal file
47
.gitea/workflows/build-grpc.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
on:
|
||||
create:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
name: 🏗️✨ Build Workflow
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
name: 🖥️ 🔨 Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🛡️ 🔒 Add Siteworx CA Certificates
|
||||
run: |
|
||||
apt update && apt install -yq ca-certificates curl
|
||||
curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt
|
||||
update-ca-certificates
|
||||
|
||||
- name: 📖 🔍 Checkout Repository Code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: 🔑 🔐 Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: 🏗️ 🔧 Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Replace entrypoint
|
||||
run: |
|
||||
sed -i 's/server/grpc/g' Dockerfile
|
||||
sed -i 's/8080/9000/g' Dockerfile
|
||||
|
||||
- name: 🐳 🔨 Build Grpc Container
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
sbom: true
|
||||
provenance: true
|
||||
platforms: linux/arm64,linux/amd64
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
push: true
|
||||
tags: siteworxpro/img-proxy-url-generator:${{ gitea.ref_name }}-grpc
|
||||
42
.gitea/workflows/build.yml
Normal file
42
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
on:
|
||||
create:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
name: 🏗️✨ Build Workflow
|
||||
|
||||
jobs:
|
||||
Build:
|
||||
name: 🖥️ 🔨 Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 🛡️ 🔒 Add Siteworx CA Certificates
|
||||
run: |
|
||||
apt update && apt install -yq ca-certificates curl
|
||||
curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt
|
||||
update-ca-certificates
|
||||
|
||||
- name: 📖 🔍 Checkout Repository Code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: 🔑 🔐 Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
- name: 🏗️ 🔧 Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: 🐳 🔨 Build Server Container
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
sbom: true
|
||||
provenance: true
|
||||
platforms: linux/arm64,linux/amd64
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
push: true
|
||||
tags: siteworxpro/img-proxy-url-generator:${{ gitea.ref_name }}
|
||||
@@ -8,8 +8,7 @@ name: 🧪 ✨ Unit Tests Workflow
|
||||
jobs:
|
||||
test-go:
|
||||
env:
|
||||
GOPRIVATE: 'git.siteworxpro.com'
|
||||
GOPROXY: 'direct'
|
||||
GO_VERSION: '1.24.3'
|
||||
name: 🔍 🐹 Go Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -23,7 +22,7 @@ jobs:
|
||||
- name: ⚙️ 🐹 Set up Go Environment
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.24.0'
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
cache: true
|
||||
|
||||
- name: 📖 🔍 Checkout Repository Code
|
||||
@@ -33,10 +32,8 @@ jobs:
|
||||
|
||||
- name: 📦 📥 Install Dependencies
|
||||
run: |
|
||||
cd backend
|
||||
go mod download
|
||||
|
||||
- name: ✅ 🔍 Run Go Tests
|
||||
run: |
|
||||
cd backend
|
||||
go test -v ./... -coverprofile=coverage.out
|
||||
@@ -12,7 +12,7 @@ RUN go mod tidy && go build -o imgproxy .
|
||||
|
||||
FROM alpine:latest AS runtime
|
||||
|
||||
EXPOSE 9000
|
||||
EXPOSE 8080
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -23,4 +23,4 @@ RUN adduser -u 1001 -g appuser appuser -D && \
|
||||
|
||||
USER 1001
|
||||
|
||||
ENTRYPOINT ["/app/imgproxy", "grpc"]
|
||||
ENTRYPOINT ["/app/imgproxy", "server"]
|
||||
Reference in New Issue
Block a user