ci: add deployment pipeline
This commit is contained in:
parent
a654b9c86d
commit
f17ad4d9b1
@ -53,10 +53,11 @@ jobs:
|
|||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ github.sha }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: "tcp://docker:2376/"
|
DOCKER_HOST: "tcp://docker:2376/"
|
||||||
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"
|
||||||
|
|
||||||
|
20
.gitea/workflows/deploy.yaml
Normal file
20
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
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