Skip to content

Commit

Permalink
add action file
Browse files Browse the repository at this point in the history
  • Loading branch information
sajib1066 committed Nov 21, 2020
1 parent 96bbdd2 commit 0dc968f
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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"
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ RUN pip install -r requirements.txt

COPY . /app
EXPOSE 8000
CMD python manage.py runserver 0.0.0.0:8000
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" ]
17 changes: 17 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#! bin/sh -l

sh -c "echo School Management System $INPUT_MY_NAME"

0 comments on commit 0dc968f

Please sign in to comment.