You've already forked php-auth
generated from siteworxpro/Php-Template
All checks were successful
🧪✨ Tests Workflow / 🛡️ 🔒 Library Audit (push) Successful in 57s
🧪✨ Tests Workflow / 📝 ✨ Code Lint (push) Successful in 1m0s
🧪✨ Tests Workflow / 🧪 ✨ Database Migrations (push) Successful in 1m13s
🧪✨ Tests Workflow / 🛡️ 🔒 License Check (push) Successful in 1m8s
🧪✨ Tests Workflow / 🐙 🔍 Code Sniffer (push) Successful in 1m15s
🧪✨ Tests Workflow / 🧪 ✅ Unit Tests (push) Successful in 1m17s
🏗️✨ Build Workflow / 🖥️ 🔨 Build (push) Successful in 22m23s
🏗️✨ Build Workflow / 🖥️ 🔨 Build Migrations (push) Successful in 1m18s
74 lines
1.9 KiB
YAML
74 lines
1.9 KiB
YAML
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
name: 🏗️✨ Build Workflow
|
|
|
|
jobs:
|
|
Build:
|
|
name: 🖥️ 🔨 Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- 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: Write Version File
|
|
run: |
|
|
echo $GITEA_REF_NAME > VERSION
|
|
sed -i "s/dev-version/${GITEA_REF_NAME}/g" src/Helpers/Version.php
|
|
|
|
|
|
- name: 🏗️ 🔧 Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: 🐳 🔨 Build Container
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
sbom: true
|
|
provenance: true
|
|
context: .
|
|
platforms: linux/amd64,linux/arm64
|
|
dockerfile: Dockerfile
|
|
tags: siteworxpro/oauth:${{ gitea.ref_name }}
|
|
|
|
Build-Migrations:
|
|
needs:
|
|
- Build
|
|
name: 🖥️ 🔨 Build Migrations
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🔑 🔐 Login to Docker Hub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- name: 📖 🔍 Checkout Repository Code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: 🏗️ 🔧 Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: 🐳 🔨 Build Migrations Container
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
sbom: true
|
|
provenance: true
|
|
context: .
|
|
file: migrations.Dockerfile
|
|
tags: siteworxpro/oauth:${{ gitea.ref_name }}-migrations |