Compare commits
12
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
801e11445a | ||
|
|
113b8d7c75 | ||
|
|
f940e6d0bb | ||
|
|
13e5118dba | ||
|
|
7134658f85 | ||
|
|
8ddf383725 | ||
|
|
3cdcf7ed67 | ||
|
|
57b899f315 | ||
|
|
99f72e0107 | ||
|
|
a979a72a65 | ||
|
|
4474be0abc | ||
|
|
832df8a9e1 |
+26
@@ -0,0 +1,26 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build and test
|
||||||
|
image: python:3.9-slim
|
||||||
|
commands:
|
||||||
|
- pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: python:3.9-slim
|
||||||
|
when:
|
||||||
|
status: success
|
||||||
|
commands:
|
||||||
|
- echo "Deploying app to production..."
|
||||||
|
- python app.py & # Run Flask app in background
|
||||||
|
secrets: [ eins ] # Use secrets to securely store deployment credentials
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
target:
|
||||||
|
- production
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Dockerfile
|
# Dockerfile
|
||||||
FROM python:3.9-slim
|
FROM python:3.13-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
# Dockerfile
|
# Dockerfile
|
||||||
FROM python:3.9-slim
|
FROM python:3.13-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
# requirements.txt
|
# requirements.txt
|
||||||
Flask==2.0.1
|
Flask==2.0.1
|
||||||
Werkzeug==2.2.2
|
Werkzeug==2.2.2
|
||||||
|
requests
|
||||||
Reference in New Issue
Block a user