From 0dc968fe6af65a71fa95fde76ce13acdc6252aed Mon Sep 17 00:00:00 2001 From: Sajib Hossain Date: Sun, 22 Nov 2020 00:04:21 +0600 Subject: [PATCH] add action file --- .github/workflows/main.yml | 12 ++++++++++++ Dockerfile | 8 +++++++- action.yml | 17 +++++++++++++++++ entrypoint.sh | 3 +++ 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml create mode 100644 action.yml create mode 100644 entrypoint.sh diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d595972 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: "A Workflow for School Management System App" +on: push + +jobs: + build: + name: School Management System Action + runs-on: ubuntu-latest + steps: + - uses: action/checkout@v1 + - uses: .action-a + with: + MY_NAME: "Sajib Hossain" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b8be231..540c419 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,10 @@ RUN pip install -r requirements.txt COPY . /app EXPOSE 8000 -CMD python manage.py runserver 0.0.0.0:8000 \ No newline at end of file +CMD python manage.py runserver 0.0.0.0:8000 + +FROM debian:9.5-slim + +ADD entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT [ "/entrypoint.sh" ] \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..f4530a4 --- /dev/null +++ b/action.yml @@ -0,0 +1,17 @@ +name: "School Management System" +description: "School Management System Web Application" +author: "Sajib Hossain" + +inputs: + MY_NAME: + description: "Sajib Hossain" + required: true + default: "Sajib" + +runs: + using: "docker" + image: "Dockerfile" + +branding: + icon: "mic" + color: "purple" diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..79cfe9c --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#! bin/sh -l + +sh -c "echo School Management System $INPUT_MY_NAME" \ No newline at end of file