Skip to content

Commit

Permalink
Release Action
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
otaviof authored and vdemeester committed Apr 3, 2023
1 parent fbd3c8b commit 13361f0
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: release

on:
push:
tags:
- "*"

jobs:
release:
permissions:
contents: write
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: openshift-pipelines/release-tektoncd-task@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: git
name: task-git
version: 0.0.1
description: |
This Task represents Git and is able to initialize and clone a remote
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
[![test][workflowsTestBadge]][workflowsTest]
<p align="center">
<a alt="Test Workflow" href="https://github.com/openshift-pipelines/task-git/actions/workflows/test.yaml">
<img alt="GitHub Test Workflow Status" src="https://img.shields.io/github/actions/workflow/status/openshift-pipelines/task-git/test.yaml?label=test">
</a>
<a alt="Latest Release" href="https://github.com/openshift-pipelines/task-git/releases/latest">
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/openshift-pipelines/task-git">
</a>
</p>

`git` Tekton Task
-----------------
Expand Down Expand Up @@ -146,5 +153,3 @@ The following results are produced by this Task.
[tektonPVC]: https://tekton.dev/docs/pipelines/workspaces/#using-persistentvolumeclaims-as-volumesource
[tektonWorkspaceSecret]: https://tekton.dev/docs/pipelines/workspaces/#secret
[tlsCA]: https://en.wikipedia.org/wiki/Certificate_authority
[workflowsTest]: https://github.com/openshift-pipelines/task-git/actions/workflows/test.yaml
[workflowsTestBadge]: https://github.com/openshift-pipelines/task-git/actions/workflows/test.yaml/badge.svg
2 changes: 1 addition & 1 deletion templates/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: {{ .Chart.Name }}
name: git
labels:
app.kubernetes.io/version: {{ .Chart.Version }}
{{- if .Values.annotations }}
Expand Down

0 comments on commit 13361f0

Please sign in to comment.