From 13361f0f24536115c813a7335f358427eed97ff4 Mon Sep 17 00:00:00 2001 From: Otavio Fernandes Date: Sun, 19 Mar 2023 07:38:12 +0100 Subject: [PATCH] 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. --- .github/workflows/release.yaml | 20 ++++++++++++++++++++ Chart.yaml | 2 +- README.md | 11 ++++++++--- templates/task.yaml | 2 +- 4 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..950ee9e --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/Chart.yaml b/Chart.yaml index 9f8277f..6203283 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -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 diff --git a/README.md b/README.md index 9f27808..60f0bdb 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ -[![test][workflowsTestBadge]][workflowsTest] +

+ + GitHub Test Workflow Status + + + GitHub release (latest by date) + +

`git` Tekton Task ----------------- @@ -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 \ No newline at end of file diff --git a/templates/task.yaml b/templates/task.yaml index d4c4b14..6f7f8c6 100644 --- a/templates/task.yaml +++ b/templates/task.yaml @@ -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 }}