Browse Source

Added a way to copy from aws to docker hub

pull/1/head
Öystein Andersen 4 years ago
parent
commit
04753df88c
  1. 28
      pipeline/pipeline.yaml

28
pipeline/pipeline.yaml

@ -64,6 +64,19 @@ resources:
admin_cert: ((demo_kube_admin_cert)) admin_cert: ((demo_kube_admin_cert))
resource_type: cronjob resource_type: cronjob
resource_name: redis-clean-trigger 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: jobs:
- name: "Build" - name: "Build"
@ -150,3 +163,18 @@ jobs:
*Build Pipeline Name*: $BUILD_PIPELINE_NAME *Build Pipeline Name*: $BUILD_PIPELINE_NAME
*Job*: Deploy to demo *Job*: Deploy to demo
*URL*: http://pipeline.smartenergi.io:8080/builds/$BUILD_ID *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