Skip to content

Commit

Permalink
chore(repo): initialize repository
Browse files Browse the repository at this point in the history
  • Loading branch information
JowiAoun committed Oct 6, 2024
0 parents commit 2d6a7ad
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/BUILD.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on:
push:
branches: 'main'

jobs:
# lint:
# name: Lint project 🧹
# runs-on: ubuntu-latest

# steps:
# -
# name: Checkout repository
# uses: actions/checkout@v4
# -
# name: Set up ShellCheck
# run: sudo apt-get install -y spellcheck
# -
# name: Run spellcheck
# run: spellcheck **/*.sh


build:
name: Create Docker image 📷
runs-on: ubuntu-latest
# needs: [lint]
steps:
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and Push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ vars.DOCKERHUB_USERNAME }}/dirclean:latest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
logs/
tmp/
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM ubuntu:latest

RUN apt-get update && apt-get install -y \
shellcheck \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app

COPY . .

CMD ["shellcheck", "**/*.sh"]
21 changes: 21 additions & 0 deletions LICENCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Jowi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Script for categorizing directories & files based on file types.
7 changes: 7 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[ ] Create main entry point, test it out
[ ] Attempt using with CLI
[ ] Make CLI help command
[ ] Add configs
[ ] Add linter
[ ] Initialize README
[ ] Set up Semantic-release
3 changes: 3 additions & 0 deletions bin/dirclean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

echo "I love clean repositories!"

0 comments on commit 2d6a7ad

Please sign in to comment.