Skip to content

Commit d5fda8d

Browse files
committed
Release 0.2.4, generated from commit dae708f
1 parent 72d7e72 commit d5fda8d

File tree

6 files changed

+78
-6
lines changed

6 files changed

+78
-6
lines changed

.drone.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
kind: pipeline
2+
type: docker
3+
name: default
4+
5+
steps:
6+
- name: jira-integration
7+
image: boringdownload/jira-integration:v0
8+
environment:
9+
JIRA_ISSUES: JCI-7
10+
BUILD_NAME: drone-pipeline
11+
JIRA_INSTANCE: boringdownload
12+
JIRA_CLIENT_ID:
13+
from_secret: jira_client_id
14+
JIRA_CLIENT_SECRET:
15+
from_secret: jira_client_secret
16+
17+
trigger:
18+
branch:
19+
- releases/**

.github/workflows/generate.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,20 @@ jobs:
7171
- name: Copy to release branch
7272
if: ${{ env.create_release == 'yes' }}
7373
run: |
74+
# Copy build
7475
cp -r dist release
75-
cp -r .github release
76-
cp -r docs release
77-
cp README.md release/
7876
cp package.json release/
7977
cp package-lock.json release/
8078
cp action.yml release/
79+
80+
# Copy pipelines
81+
cp -r .github release
82+
cp .gitlab-ci.yml release/
83+
cp .drone.yml release/
84+
85+
cp -r docs release
86+
cp README.md release/
8187
cp LICENSE release/
82-
cp .gitignore release/
8388
8489
# Add executable
8590
cp jira-integration release/

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,36 @@ jobs:
132132
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
133133
git tag -fa v${{ env.major_version }} -m "Update v${{ env.major_version }} tag"
134134
git push origin v${{ env.major_version }} --force
135+
136+
test-build:
137+
needs: action
138+
runs-on: ubuntu-latest
139+
steps:
140+
- name: Jira Development Integration
141+
uses: rohit-gohri/jira-ci-cd-integration@v0
142+
env:
143+
JIRA_DEFAULT_TEST_ISSUE: 'JCI-7'
144+
with:
145+
event_type: build
146+
state: ${{ job.status }}
147+
jira_instance: boringdownload
148+
token: ${{ secrets.GITHUB_TOKEN }}
149+
client_id: ${{ secrets.JIRA_CLIENT_ID }}
150+
client_secret: ${{ secrets.JIRA_CLIENT_SECRET }}
151+
152+
# TODO: Fix this
153+
# test-deployment:
154+
# needs: action
155+
# runs-on: ubuntu-latest
156+
# steps:
157+
# - name: Jira Development Integration
158+
# uses: rohit-gohri/jira-ci-cd-integration@v0
159+
# env:
160+
# JIRA_DEFAULT_TEST_ISSUE: 'JCI-7'
161+
# with:
162+
# event_type: deployment
163+
# state: ${{ job.status }}
164+
# jira_instance: boringdownload
165+
# token: ${{ secrets.GITHUB_TOKEN }}
166+
# client_id: ${{ secrets.JIRA_CLIENT_ID }}
167+
# client_secret: ${{ secrets.JIRA_CLIENT_SECRET }}

.gitlab-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://docs.gitlab.com/ce/ci/yaml/README.html
2+
3+
image: node:12
4+
5+
workflow:
6+
rules:
7+
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_REF_NAME =~ /releases/'
8+
9+
jira-integration:
10+
image: registry.gitlab.com/rohit-gohri/jira-ci-cd-integration:v0
11+
script: jira-integration
12+
variables:
13+
JIRA_ISSUES: JCI-7
14+
BUILD_NAME: gitlab-pipeline
15+
JIRA_INSTANCE: boringdownload

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jira-ci-cd-integration",
3-
"version": "0.2.3",
3+
"version": "0.2.4",
44
"private": true,
55
"description": "TypeScript template action",
66
"main": "lib/main.js",

0 commit comments

Comments
 (0)