11 Commits

Author SHA1 Message Date
2b865568c0 That last commit was cringe
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 8m33s
2025-05-20 16:55:07 -04:00
05fc22e966 Plloi rebase plx?
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 5m18s
2025-05-20 16:37:16 -04:00
6159a1509d I'm sorry.
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 2m10s
2025-05-20 16:33:43 -04:00
e86c892b8f Fixing JC6's bug.
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 11m23s
2025-05-20 15:11:49 -04:00
61f42c5297 Nitpicking about alphabetizing methods, minor OCD thing
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 2m9s
2025-05-20 14:41:20 -04:00
17971f34c1 Programming the flux capacitor
Some checks failed
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Has been cancelled
2025-05-20 14:31:53 -04:00
d66dbe89cb happy monday _ bleh _
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 5m26s
2025-05-20 11:18:41 -04:00
9af291f4d2 copy and paste is not a design pattern
All checks were successful
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Successful in 3m37s
2025-05-13 22:02:03 -04:00
3a61962c04 I expected something different.
Some checks failed
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Failing after 3m7s
2025-05-13 21:55:09 -04:00
7a8d0714f5 bara bra grejjor
Some checks failed
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Has been cancelled
2025-05-13 21:54:32 -04:00
bcd287b3b3 asdfasdfasdfasdfasdfasdfadsf
Some checks failed
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Failing after 2m24s
2025-05-13 21:47:47 -04:00
4 changed files with 93 additions and 7 deletions

View 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

View 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 }}

View File

@@ -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

View File

@@ -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"]