Skip to content

Commit 13361f0

Browse files
otaviofvdemeester
authored andcommitted
Release Action
Release workflow to package the project contents and upload the container images. The Chart name must reflect the Helm-Chart image, thus renaming the Chart and task name accordingly.
1 parent fbd3c8b commit 13361f0

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: release
3+
4+
on:
5+
push:
6+
tags:
7+
- "*"
8+
9+
jobs:
10+
release:
11+
permissions:
12+
contents: write
13+
packages: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- uses: openshift-pipelines/release-tektoncd-task@main
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
name: git
2+
name: task-git
33
version: 0.0.1
44
description: |
55
This Task represents Git and is able to initialize and clone a remote

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
[![test][workflowsTestBadge]][workflowsTest]
1+
<p align="center">
2+
<a alt="Test Workflow" href="https://github.com/openshift-pipelines/task-git/actions/workflows/test.yaml">
3+
<img alt="GitHub Test Workflow Status" src="https://img.shields.io/github/actions/workflow/status/openshift-pipelines/task-git/test.yaml?label=test">
4+
</a>
5+
<a alt="Latest Release" href="https://github.com/openshift-pipelines/task-git/releases/latest">
6+
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/openshift-pipelines/task-git">
7+
</a>
8+
</p>
29

310
`git` Tekton Task
411
-----------------
@@ -146,5 +153,3 @@ The following results are produced by this Task.
146153
[tektonPVC]: https://tekton.dev/docs/pipelines/workspaces/#using-persistentvolumeclaims-as-volumesource
147154
[tektonWorkspaceSecret]: https://tekton.dev/docs/pipelines/workspaces/#secret
148155
[tlsCA]: https://en.wikipedia.org/wiki/Certificate_authority
149-
[workflowsTest]: https://github.com/openshift-pipelines/task-git/actions/workflows/test.yaml
150-
[workflowsTestBadge]: https://github.com/openshift-pipelines/task-git/actions/workflows/test.yaml/badge.svg

templates/task.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: tekton.dev/v1beta1
33
kind: Task
44
metadata:
5-
name: {{ .Chart.Name }}
5+
name: git
66
labels:
77
app.kubernetes.io/version: {{ .Chart.Version }}
88
{{- if .Values.annotations }}

0 commit comments

Comments
 (0)