From d7f8baf2e16db6708ac37be9ad86f5f20c2f3a26 Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Fri, 26 Jul 2024 11:31:09 +0200 Subject: [PATCH] init --- .github/workflows/main.yml | 18 ++++++++++++++++++ .github/workflows/pr.yml | 18 ++++++++++++++++++ Dockerfile | 5 +++++ 3 files changed, 41 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 .github/workflows/pr.yml create mode 100644 Dockerfile diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6c0cf09 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,18 @@ +name: Pull request main (workflows) + +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: docker build + run: docker build -t my-image . + + - name: docker run my-image + run: docker run my-image diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..d6ae067 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,18 @@ +name: Pull request main (workflows) + +on: + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: docker build + run: docker build -t my-image . + + - name: docker run my-image + run: docker run my-image diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c88c80e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM python:3.11-slim + +WORKDIR /app + +RUN echo "HAHAHHAHAHAHAHAHAHAHAHAHAHAHAHH"