Skip to content

Commit

Permalink
Merge pull request #16 from moulalis/update_floatingtag_main
Browse files Browse the repository at this point in the history
updating tekton files to include floating tags
  • Loading branch information
moulalis authored Jun 4, 2024
2 parents e1abc10 + a5e0295 commit d6a16e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .tekton/fms-hf-tuning-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch
== "main"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "pull_request"
&& target_branch == "main"
&& ( !".tekton/**".pathChanged() || ".tekton/fms-hf-tuning-pull-request.yaml".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: fms-hf-tuning
Expand Down
11 changes: 8 additions & 3 deletions .tekton/fms-hf-tuning-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ metadata:
build.appstudio.redhat.com/commit_sha: '{{revision}}'
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
pipelinesascode.tekton.dev/max-keep-runs: "3"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
== "main"
pipelinesascode.tekton.dev/on-cel-expression: |
event == "push"
&& target_branch == "main"
&& (!".tekton/**".pathChanged() || ".tekton/fms-hf-tuning-push.yaml".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: fms-hf-tuning
Expand All @@ -22,7 +24,7 @@ spec:
- name: git-url
value: '{{source_url}}'
- name: output-image
value: quay.io/modh/fms-hf-tuning:{{revision}}
value: quay.io/modh/fms-hf-tuning:{{target_branch}}
- name: path-context
value: .
- name: revision
Expand Down Expand Up @@ -404,6 +406,9 @@ spec:
params:
- name: IMAGE
value: $(tasks.build-container.results.IMAGE_URL)
- name: ADDITIONAL_TAGS
value:
- '{{target_branch}}-{{revision}}'
runAfter:
- build-container
taskRef:
Expand Down

0 comments on commit d6a16e4

Please sign in to comment.