ci: release pipeline on tag
This commit is contained in:
parent
67d089d850
commit
3ec66f5186
@ -1,7 +1,9 @@
|
||||
name: Build and Deploy
|
||||
run-name: ${{ gitea.actor }} is building container
|
||||
on: [push]
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
jobs:
|
||||
Build-Container-Image:
|
||||
runs-on: ubuntu-latest
|
||||
@ -60,15 +62,3 @@ jobs:
|
||||
DOCKER_TLS_CERTDIR: "/certs"
|
||||
DOCKER_TLS_VERIFY: 1
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user