Skip to content

Instantly share code, notes, and snippets.

View hasan2001jk's full-sized avatar
😎
My numbers speak for themselves

Khasan Abdurakhmanov hasan2001jk

😎
My numbers speak for themselves
View GitHub Profile
---
- hosts: ubuntu
become: yes
tasks:
- name: Update and upgrade apt packages
apt:
upgrade: yes
update_cache: yes
- name: Install required packages
name: FTP Deploy
on:
push:
branches:
- main
jobs:
build:
name: Deploy to FTP
#!/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