Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,22 @@
exit("Empty deployment file")

print("Deploying...")
changes = False
for pipeline in pipeline_updates:
data = pipeline_updates[pipeline]

if pipeline in deployed_pipelines:
old_data = deployed_pipelines[pipeline]
if data == old_data:
continue

deployed_pipelines[pipeline] = data
changes = True
print(f"{pipeline} deployed") # Or actually run a deployment script

if not changes:
print("Changes are already deployed")

production_file.truncate(0) # Remove content from file
production_file.write(dump(deployed_pipelines))
deploy_file.truncate(0)
Expand Down
24 changes: 3 additions & 21 deletions pipelines.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
auth:
description: hello world app
docker-image: estensen/hello
description: authentication
docker-image: estensen/auth
auth-v2:
description: auth app
description: authentication
docker-image: estensen/auth2
auth-v3:
description: auth app
docker-image: estensen/auth3
auth-v4:
description: auth app
docker-image: estensen/auth4
auth-v5:
description: auth app
docker-image: estensen/auth5
auth3:
description: auth
docker-image: estensen/auth-v4
authr:
description: hello world app
docker-image: estensen/hello.py
id:
description: new id app
docker-image: estensen/id
login:
description: login app
docker-image: estensen/login
name:
description: new service
image: somewhere
pipeline:
description: such wow
image: huge image