Package Hierarchies:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: ubuntu | |
become: yes | |
tasks: | |
- name: Update and upgrade apt packages | |
apt: | |
upgrade: yes | |
update_cache: yes | |
- name: Install required packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: FTP Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Deploy to FTP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if a file was provided | |
if [ -z "$1" ] | |
then | |
echo "Please provide a .deb file" | |
exit 1 | |
fi | |
# Check if file exists |