113 lines
3.2 KiB
YAML
113 lines
3.2 KiB
YAML
---
|
|
name: Build and push
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test_shellcheck:
|
|
name: check and test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install shellcheck
|
|
run: apt update && apt install -y shellcheck
|
|
- name: test
|
|
run: ./shellcheck.sh
|
|
buildpush:
|
|
name: build_and_push
|
|
needs: [tests_shellcheck]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Kaniko build htop
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/htop
|
|
path: htop
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build lynx
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/lynx
|
|
path: lynx
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build mtr
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/mtr
|
|
path: mtr
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build nmap
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/nmap
|
|
path: nmap
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build postgres-backup
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/postgres-backup
|
|
path: postgres-backup
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build pyweb
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/pyweb
|
|
path: pyweb
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build shellcheck
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/shellcheck
|
|
path: shellcheck
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build traceroute
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/traceroute
|
|
path: traceroute
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|
|
|
|
- name: Kaniko build vaultwarden-backup
|
|
uses: aevea/action-kaniko@master
|
|
with:
|
|
image: uleenucks/vaultwarden-backup
|
|
path: vaultwarden-backup
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
cache: false
|
|
exra_args: --cleanup
|