udpate
This commit is contained in:
@@ -8,7 +8,7 @@ jobs:
|
||||
lint:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: node:20-alpine # Node available for Gitea Actions
|
||||
image: node:20-alpine
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -16,19 +16,14 @@ jobs:
|
||||
- name: Install linters
|
||||
run: |
|
||||
apk add --no-cache python3 py3-pip bash git
|
||||
python3 -m venv venv
|
||||
. venv/bin/activate
|
||||
pip install --upgrade pip
|
||||
pip install yamllint ansible-lint
|
||||
|
||||
- name: Run linters
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
yamllint .
|
||||
ansible-lint ansible/playbooks
|
||||
|
||||
|
||||
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
@@ -65,7 +60,7 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
- name: Install Ansible & dependencies
|
||||
run: |
|
||||
apk add --no-cache openssh bash git python3 py3-pip
|
||||
pip install ansible
|
||||
@@ -78,10 +73,4 @@ jobs:
|
||||
ssh-keyscan -H <SERVER_IP> >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Run Ansible deployment
|
||||
run: ansible-playbook -i ../../ansible/inventory.yaml ../../site.yml
|
||||
|
||||
- name: Run Ansible deployment
|
||||
run: |
|
||||
ansible-playbook \
|
||||
-i \
|
||||
./site.yml
|
||||
run: ansible-playbook -i ansible/inventory.yaml site.yaml
|
||||
|
||||
Reference in New Issue
Block a user