Skip to content

Commit bf3bc8b

Browse files
authored
Use published image (#54)
1 parent f020ad9 commit bf3bc8b

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

docs/README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,13 @@ staging to production.
1515
- resources.yaml: (template) create pipeline resources for github and docker repository
1616

1717
- build-task.yaml: create a build push task
18-
- servicepromote.yaml: (template)create a promote from service repo to env repo task
18+
- servicepromote.yaml: create a promote from service repo to env repo task
1919
- servicepromotepipeline.yaml: create a pipeline that executes build, push and promote
2020
- servicepromotepipelinerun.yaml: create a pipelinerun that executes the servicepromotepipeline
2121

2222
- promote.yaml: (template)create a promote from one env repo to another env repo task
2323
- promoterun.yaml: create a taskrun that execute promote task
2424

25-
## Build docker image with `service promote` command
26-
27-
- clone this repository
28-
- run `docker build -t <image name> .` in repository root directory
29-
- run `docker tag <image name> <your docker hub id>/<image name>` to tag the image
30-
- run `docker login` to login to the docker hub
31-
- run `docker push <your docker hub id>/<image name>` to push the image to the docker hub
32-
3325
## Create Tekton resource
3426

3527
- edit all yaml files marked as (template) in the section above and also the gitconfig file. Entries of the form `<some property>` must be replaced with the real value, i.e at occurences such as `<image name>`, `<github org>/<github repo>` etc...

docs/servicepromote.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ spec:
3131
path: gitconfig
3232
steps:
3333
- name: promote
34-
image: <image name>
34+
image: quay.io/redhat-developer/gitops-cli
3535
imagePullPolicy: Always
3636
volumeMounts:
3737
- name: gitconfig
3838
mountPath: /root
3939
script: |
4040
#!/bin/sh
4141
cp /root/gitconfig $HOME/.gitconfig
42-
services promote --from $(params.from) --to $(params.to) --service $(params.service)
42+
services promote --from $(params.from) --to $(params.to) --service $(params.service)
4343
env:
4444
- name: GITHUB_TOKEN
4545
valueFrom:

0 commit comments

Comments
 (0)