Initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: install
|
||||
image: python:3.12
|
||||
|
||||
commands:
|
||||
- pip install -r requirements.txt
|
||||
|
||||
- name: lint
|
||||
image: python:3.12
|
||||
|
||||
commands:
|
||||
- pip install flake8
|
||||
-flake8 .
|
||||
|
||||
- name: test
|
||||
image:python:3.12
|
||||
|
||||
commands:
|
||||
- pip install pytest
|
||||
- pytest
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
-main
|
||||
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
FROM node:20
|
||||
|
||||
WORKDIR /myapp
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "start"]
|
||||
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
gitea:
|
||||
image: gitea/gitea:latest
|
||||
|
||||
drone:
|
||||
image: drone/drone:latest
|
||||
@@ -0,0 +1,9 @@
|
||||
git init
|
||||
|
||||
git add .
|
||||
|
||||
git commit -m "Initial commit"
|
||||
|
||||
git remote add origin http://gitea/rahinim2005/myapp.git
|
||||
|
||||
git push -u origin main
|
||||
@@ -0,0 +1,9 @@
|
||||
FROM python:latest
|
||||
|
||||
WORKDIR /myapp
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN python requirements.txt
|
||||
|
||||
CMD ["python", "app.py"]
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "myapp",
|
||||
"version": "1.0.0",
|
||||
"description": "Docker demo",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"start": "node app.js"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
||||
Reference in New Issue
Block a user