Files
DOCKER_PHP_BASE/.gitea/workflows/docker-build.yaml
T
Jonatan Rek b6f8151bd4
Build - Docker Image - PROD / publish (push) Failing after 8m13s
Fixes
2026-01-28 10:41:13 +01:00

96 lines
2.8 KiB
YAML

name: "Build - Docker Image - PROD"
run-name: ${{ gitea.actor }} is runs ci pipeline
on:
push:
branches:
- main
schedule:
- cron: "0 1 * * *"
concurrency:
group: docker-build-prod
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
permissions:
packages: write
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v3
with:
registry: git.steelants.cz
username: ${{ secrets.GITEAUSER }}
password: ${{ secrets.GITEAPASSWD }}
- uses: docker/build-push-action@v6
with:
context: ./apache/
push: true
tags: git.steelants.cz/steelants/docker_php_base:latest
# ✅ Notifikace při úspěšném deploymentu
- name: Discord Webhook Success
if: success()
uses: tsickert/discord-webhook@v6.0.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: |
✅ APACHE - Build successful!
Repo: ${{ github.repository }}
Branch: ${{ github.ref_name }}
Commit: ${{ github.sha }}
Version: ${{ env.release_version }}
# ❌ Notifikace při neúspěšném deploymentu
- name: Discord Webhook Failure
if: failure()
uses: tsickert/discord-webhook@v6.0.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: |
❌ APACHE - Build failed!
Repo: ${{ github.repository }}
Branch: ${{ github.ref_name }}
Commit: ${{ github.sha }}
Version: ${{ env.release_version }}
- uses: docker/build-push-action@v6
with:
context: ./fmp-alpine/
push: true
tags: git.steelants.cz/steelants/docker_php_base:fpm-alpine-latest
# ✅ Notifikace při úspěšném deploymentu
- name: Discord Webhook Success
if: success()
uses: tsickert/discord-webhook@v6.0.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: |
✅ FMP - ALPINE - Build successful!
Repo: ${{ github.repository }}
Branch: ${{ github.ref_name }}
Commit: ${{ github.sha }}
Version: ${{ env.release_version }}
# ❌ Notifikace při neúspěšném deploymentu
- name: Discord Webhook Failure
if: failure()
uses: tsickert/discord-webhook@v6.0.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: |
❌ FMP - ALPINE - Build failed!
Repo: ${{ github.repository }}
Branch: ${{ github.ref_name }}
Commit: ${{ github.sha }}
Version: ${{ env.release_version }}