Files
img-proxy-url-generator/.gitea/workflows/build.yml
Ron Rise 17971f34c1
Some checks failed
🧪 ✨ Unit Tests Workflow / 🔍 🐹 Go Tests (push) Has been cancelled
Programming the flux capacitor
2025-05-20 14:31:53 -04:00

55 lines
1.5 KiB
YAML

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 Backend Container
uses: docker/build-push-action@v6
with:
sbom: true
provenance: true
context: .
dockerfile: Dockerfile
push: true
tags: siteworxpro/img-proxy-url-generator:${{ gitea.ref_name }}
- name: Replace entrypoint
run: |
sed -i '' 's/server/grpc/g' Dockerfile
- name: 🐳 🔨 Build Backend Container
uses: docker/build-push-action@v6
with:
sbom: true
provenance: true
context: .
dockerfile: Dockerfile
push: true
tags: siteworxpro/img-proxy-url-generator:${{ gitea.ref_name }}-grpc