Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit 8feb837

Browse files
initial commit
1 parent f3ba846 commit 8feb837

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

generate-commitish/task.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
git -C project rev-parse HEAD > task-output/commitish

generate-commitish/task.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: docker-image
6+
source:
7+
repository: concourse/git-resource
8+
9+
inputs:
10+
- name: pipeline-tasks
11+
- name: project
12+
13+
outputs:
14+
- name: task-output
15+
16+
run:
17+
path: pipeline-tasks/generate-commitish/task.sh

generate-github-release/task.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
version=$(cat version/version)
4+
5+
echo v${version} > task-output/release-name
6+
echo v${version} > task-output/release-tag

generate-github-release/task.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
platform: linux
3+
4+
image_resource:
5+
type: docker-image
6+
source:
7+
repository: concourse/git-resource
8+
9+
inputs:
10+
- name: pipeline-tasks
11+
- name: version
12+
13+
outputs:
14+
- name: task-output
15+
16+
run:
17+
path: pipeline-tasks/generate-github-release/task.sh

0 commit comments

Comments
 (0)