ci: merge deploy and build pipeline
This commit is contained in:
parent
cb3628a9e1
commit
67d089d850
@ -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
|
||||||
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user