Skip to content

Commit 091773f

Browse files
DEVOPS-46 github action frame
1 parent 0d6368f commit 091773f

File tree

5 files changed

+25
-45
lines changed

5 files changed

+25
-45
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
LICENSE
2+
github-authentication.py
3+
README.md

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,4 @@ cython_debug/
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160160
.idea/
161+
github-authentication.py

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Container image that runs your code
2+
FROM python:3.10-slim-bullseye
3+
4+
WORKDIR /app
5+
# Copies your code file from your action repository to the filesystem path `/` of the container
6+
COPY . /app/
7+
8+
# Install pipenv
9+
RUN chmod +x entrypoint.sh && apt-get update -y && pip install pipenv
10+
11+
# Code file to execute when the docker container starts up (`entrypoint.sh`)
12+
ENTRYPOINT ["/app/entrypoint.sh"]

entrypoint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! /bin/bash
2+
3+
# installng pipenv and creating pipenv venv
4+
cd /app && pipenv install --skip-lock
5+
6+
# run python program to generate token
7+
pipenv run python3 /app/generate_jwt.py --github_app_id $1 --github_app_private_key $2
8+
9+

github-authentication.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)