Browse Source

Merge branch 'AddCopyToHub' of smartenergi/redis_clean_trigger into master

pull/2/head
Öystein Andersen 4 years ago committed by Gitea
parent
commit
4597e2d55b
  1. 10
      README.md
  2. 28
      pipeline/pipeline.yaml

10
README.md

@ -1,3 +1,9 @@ @@ -1,3 +1,9 @@
# alarmlist_trigger
# Redis clean trigger
Will clean the Redis Stream and leave only the specified amount of posts
## By number and not by time
Redis can't remove old post by date, only by how many you want to be left. Not optimal.
Microservice trigger of larmlist updates

28
pipeline/pipeline.yaml

@ -64,6 +64,19 @@ resources: @@ -64,6 +64,19 @@ resources:
admin_cert: ((demo_kube_admin_cert))
resource_type: cronjob
resource_name: redis-clean-trigger
- name: pull_image
type: docker-image-resource
source:
repository: 935062023832.dkr.ecr.eu-west-1.amazonaws.com/redis_clean_trigger
aws_access_key_id: ((aws_access_key_ecr))
aws_secret_access_key: ((aws_secret_key_ecr))
- name: push_image
type: docker-image-resource
source:
repository: smartenergi/redis_clean_trigger
username: ((dockerhub_user))
password: ((dockerhub_password))
jobs:
- name: "Build"
@ -150,3 +163,18 @@ jobs: @@ -150,3 +163,18 @@ jobs:
*Build Pipeline Name*: $BUILD_PIPELINE_NAME
*Job*: Deploy to demo
*URL*: http://pipeline.smartenergi.io:8080/builds/$BUILD_ID
- name: Pull_and_push_2_hub
public: true
serial: false
plan:
- get: version
trigger: true
passed: ["Build"]
- get: pull_image
params:
save: true
- put: push_image
params:
load: pull_image
tag_file: version/number
get_params: { skip_download: true }

Loading…
Cancel
Save