1 Commits

Author SHA1 Message Date
f6b9325cc2 Update dependency pyTelegramBotAPI to ~=4.7.0
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2022-09-17 23:35:16 +02:00
6 changed files with 60 additions and 57 deletions

View File

@@ -1,41 +0,0 @@
name: Build & Publish
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: https://github.com/docker/metadata-action@v4
with:
images: git.flokaiser.com/dhbw/guesstheprice
tags: |
type=sha,enable=true,priority=100,prefix={{branch}}-,suffix=,format=short
type=raw,value=latest,enable={{is_default_branch}}
- name: Get get-docker.sh
run: curl -fsSL https://get.docker.com -o get-docker.sh
- name: Install docker
run: sh get-docker.sh
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: git.flokaiser.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
file: source/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}

4
.re Normal file
View File

@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"schedule": ["* 5 * * *"]
}

47
.woodpecker.yml Normal file
View File

@@ -0,0 +1,47 @@
pipeline:
generate_docker_tag:
image: golang
commands:
- echo -n "${CI_COMMIT_BRANCH//\//-}-${CI_COMMIT_SHA:0:8}, latest" > .tags
when:
event: push
build:
image: woodpeckerci/plugin-docker-buildx
settings:
repo:
from_secret: repo
username:
from_secret: username
password:
from_secret: password
registry:
from_secret: registry
dockerfile: source/Dockerfile
platforms: linux/amd64
when:
event: push
deploy:
image: appleboy/drone-ssh
network_mode: host
settings:
host:
from_secret: ssh_host
username:
from_secret: ssh_user
password:
from_secret: ssh_password
port:
from_secret: ssh_port
script:
- cd ~/docker-compose-files/guess_the_price
- docker-compose pull
- docker-compose --env-file ~/docker-compose-env/guess_the_price.env up -d
when:
event: push
branches: main

View File

@@ -1,10 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"schedule": ["* 5 * * *"],
"packageRules": [
{
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
}
]
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View File

@@ -1,12 +1,12 @@
pyTelegramBotAPI~=4.10.0
python-dotenv~=0.21.0
APScheduler~=3.10.0
pyTelegramBotAPI~=4.7.0
python-dotenv~=0.20.0
APScheduler~=3.9.1
SQLAlchemy~=1.4.37
pymysql==1.0.2
requests~=2.28.1
requests~=2.27.1
beautifulsoup4~=4.11.1
pandas~=1.5.0
pandas~=1.4.2
PyVirtualDisplay~=3.0
selenium~=4.8.0
plotly~=5.13.0
selenium~=4.2.0
plotly~=5.8.0
fuzzywuzzy~=0.18.0

View File

@@ -1,4 +1,4 @@
FROM python:3.11-slim
FROM python:3.10-slim
# Change the working directory to the root of the project
WORKDIR /srv/flask_app