generated from CC/VMServiceTemplate
ci/cd debug
This commit is contained in:
@@ -40,13 +40,19 @@ jobs:
|
||||
run: terraform apply -auto-approve
|
||||
working-directory: "terraform"
|
||||
|
||||
- name: Upload generated files
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: terraform-outputs
|
||||
path: |
|
||||
ansible/inventory/inventory.yml
|
||||
terraform/vm_data.yml
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "git-bot"
|
||||
git config user.email "got-bot@text.com"
|
||||
|
||||
- name: Commit and push to Gitea
|
||||
run: |
|
||||
git remote set-url origin https://$GITEA_USERNAME:${{ secrets.GIT_BOT_TOKEN }}@tea.charcarservices.uk/CC/N8N.git
|
||||
git add terraform/vm_data.yml ansible/inventory/inventory.yml
|
||||
git diff --cached --quiet || git commit -m "chore: update terraform outputs"
|
||||
git push origin HEAD:main
|
||||
env:
|
||||
GITEA_USERNAME: git-bot # or your bot account
|
||||
|
||||
ansible-configure:
|
||||
needs: terraform-deploy
|
||||
@@ -54,12 +60,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download generated files
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: terraform-outputs
|
||||
path: .
|
||||
|
||||
- name: Install Ansible
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user