mod workflow && docker copy

This commit is contained in:
CC
2026-09-07 23:42:32 +01:00
parent b5341f866c
commit 72c218fe21
3 changed files with 5 additions and 22 deletions

View File

@@ -1,8 +1,6 @@
name: Deploy VM and App name: Deploy VM and App
on: on:
push:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
tfvars_file: tfvars_file:
@@ -17,16 +15,6 @@ on:
jobs: jobs:
terraform-ansible-deploy: terraform-ansible-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
PROXMOX_VE_API_TOKEN: https://api.staging.example.com
PROXMOX_VE_ENDPOINT: true
GITEA_BASE_URL: https://api.staging.example.com
GITEA_TOKEN: true
AWS_ACCESS_KEY_ID: https://api.staging.example.com
AWS_SECRET_ACCESS_KEY: true
AWS_REGION: garage
TF_VAR_vm_ssh_userkey: ${{ secrets.VM_USER_SSHKEY }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

View File

@@ -1,7 +1,7 @@
- hosts: all - hosts: all
become: true become: true
vars: vars:
folder_name: n8n folder_name: music
roles: roles:
- role: docker - role: docker

View File

@@ -1,17 +1,12 @@
---
# Copy directory recursively to remote host
- name: Copy project directory to remote - name: Copy project directory to remote
ansible.builtin.synchronize: ansible.posix.synchronize:
src: ../compose/{{ folder_name }} src: "../../compose/{{ folder_name }}/"
dest: /home/cloud/ dest: "/home/cloud/{{ folder_name }}/"
mode: push mode: push
- name: Start Compose stack - name: Start Compose stack
community.docker.docker_compose_v2: community.docker.docker_compose_v2:
project_src: /home/cloud/{{ folder_name }} project_src: "/home/cloud/{{ folder_name }}"
build: always build: always
pull: always pull: always
state: present state: present