You've already forked reloading-manager
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
on:
|
|
workflow_run:
|
|
workflows: ["build.yml"]
|
|
types:
|
|
- completed
|
|
jobs:
|
|
Deploy:
|
|
name: 🚀✨ Deploy Application
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: 🛡️🔒 Add Siteworx CA Certificates
|
|
run: |
|
|
apt update && apt install -yq ca-certificates curl
|
|
curl -Ls https://siteworxpro.com/hosted/Siteworx+Root+CA.pem -o /usr/local/share/ca-certificates/sw.crt
|
|
update-ca-certificates
|
|
|
|
- name: 📖🔍 Checkout Repository Code
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: 📝🔧 Update Deployment Manifest
|
|
run: |
|
|
sed "s|__TAG__|${{ gitea.ref_name }}|g" argocd/template/deployment.yml > argocd/deployment/deployment.yml
|
|
|
|
- name: 💾✅ Commit Updated Manifest
|
|
uses: EndBug/add-and-commit@v9
|
|
with:
|
|
add: argocd/deployment/deployment.yml
|
|
author_name: "GitHub Action 🤖"
|
|
author_email: gitia@siteworxpro.com
|
|
message: "📝🔄 Update deployment manifest with new image tags" |