You've already forked Php-Template
Love coding? here's the secret reason why
Some checks failed
🏗️✨ Build Workflow / 🖥️🔨 Build (push) Has been skipped
🧪✨ Tests Workflow / Code Sniffer (push) Failing after 49s
🧪✨ Tests Workflow / Code Lint (push) Failing after 51s
🧪✨ Tests Workflow / License Check (push) Failing after 52s
🧪✨ Tests Workflow / Unit Tests (push) Failing after 49s
Some checks failed
🏗️✨ Build Workflow / 🖥️🔨 Build (push) Has been skipped
🧪✨ Tests Workflow / Code Sniffer (push) Failing after 49s
🧪✨ Tests Workflow / Code Lint (push) Failing after 51s
🧪✨ Tests Workflow / License Check (push) Failing after 52s
🧪✨ Tests Workflow / Unit Tests (push) Failing after 49s
This commit is contained in:
42
.gitea/workflows/build.yml
Normal file
42
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
on:
|
||||||
|
push: {}
|
||||||
|
workflow_run:
|
||||||
|
workflows:
|
||||||
|
- tests.yml
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
name: 🏗️✨ Build Workflow
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build:
|
||||||
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
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:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
tags: siteworxpro/template:${{ gitea.ref_name }}
|
||||||
Reference in New Issue
Block a user