ci: merge deploy and build pipeline
Some checks failed
Build and Deploy / Build-Container-Image (push) Successful in 26s
renovate / renovate (push) Successful in 32s
Build and Deploy / Deployment (push) Failing after 24s

This commit is contained in:
Alex Wellnitz 2025-03-18 14:21:24 +01:00
parent cb3628a9e1
commit 67d089d850
2 changed files with 13 additions and 22 deletions

View File

@ -1,4 +1,4 @@
name: Build Docker Container name: Build and Deploy
run-name: ${{ gitea.actor }} is building container run-name: ${{ gitea.actor }} is building container
on: [push] on: [push]
@ -60,4 +60,15 @@ jobs:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1 DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "/certs/client" DOCKER_CERT_PATH: "/certs/client"
Deployment:
runs-on: ubuntu-latest
needs: Build-Container-Image
steps:
- name: Update image tag for container alexohneander-zola in deployment.yaml
uses: loveholidays/gitops-action-yaml-updater@v1.0
with:
mode: IMAGE_TAG
container-name: alexohneander-zola
new-image-tag: ${{ github.sha }}
dir: deploy/
files: deployment.yaml

View File

@ -1,20 +0,0 @@
name: deployment
on:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
needs: Build-Container-Image
steps:
- name: Update image tag for container alexohneander-zola in deployment.yaml
uses: loveholidays/gitops-action-yaml-updater@v1.0
with:
mode: IMAGE_TAG
container-name: alexohneander-zola
new-image-tag: ${{ github.sha }}
dir: deploy/
files: deployment.yaml