scheduler

This commit is contained in:
Kocsis Richárd 2020-03-29 19:07:11 +02:00
commit 28aad7af21
3 changed files with 13 additions and 6 deletions

View File

@ -25,10 +25,17 @@ steps:
from_secret: DOCKER_PASSWORD from_secret: DOCKER_PASSWORD
commands: commands:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
<<<<<<< HEAD
- docker build -t="$DOCKER_USERNAME/consumer" . - docker build -t="$DOCKER_USERNAME/consumer" .
- docker build -t="$DOCKER_USERNAME/consumer:$DRONE_BUILD_NUMBER" . - docker build -t="$DOCKER_USERNAME/consumer:$DRONE_BUILD_NUMBER" .
- docker push "$DOCKER_USERNAME/consumer" - docker push "$DOCKER_USERNAME/consumer"
- docker push "$DOCKER_USERNAME/consumer:$DRONE_BUILD_NUMBER" - docker push "$DOCKER_USERNAME/consumer:$DRONE_BUILD_NUMBER"
=======
- docker build -t="$DOCKER_USERNAME/consumer-scheduler" .
- docker build -t="$DOCKER_USERNAME/consumer-scheduler:$DRONE_BUILD_NUMBER" .
- docker push "$DOCKER_USERNAME/consumer-scheduler"
- docker push "$DOCKER_USERNAME/consumer-scheduler:$DRONE_BUILD_NUMBER"
>>>>>>> 7972566edb8660d7ba3ee0dcc58ee8740922f62c
- name: slack - name: slack
image: plugins/slack image: plugins/slack

8
app.py
View File

@ -2,15 +2,15 @@
import sentry_sdk import sentry_sdk
""" """
Main Flask RESTful API Scheduler
""" """
__author__ = "@tormakris" __author__ = "@kocsisr"
__copyright__ = "Copyright 2020, GoldenPogácsa Team" __copyright__ = "Copyright 2020, GoldenPogácsa Team"
__module_name__ = "app" __module_name__ = "app"
__version__text__ = "1" __version__text__ = "1"
sentry_sdk.init("https://0a106e104e114bc9a3fa47f9cb0db2f4@sentry.kmlabz.com/10") sentry_sdk.init("https://1b2c8467076c4e2e9158b60a4bb96bdc@sentry.kmlabz.com/11")
if __name__ == "__main__": if __name__ == "__main__":
print("Producer") print("Consumer-Scheduler")

View File

@ -1,3 +1,3 @@
sentry_sdk sentry_sdk
flask request
flask-redis redis