Skip to content

Commit efa266b

Browse files
SK-1786 test common workflow
1 parent 525bbb8 commit efa266b

3 files changed

Lines changed: 35 additions & 35 deletions

File tree

.github/workflows/internal-release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- "*.md"
88
branches:
99
- release/*
10+
pull_request:
11+
branches: [ release/* ]
1012

1113
jobs:
1214
build-and-deploy:
@@ -15,8 +17,11 @@ jobs:
1517
ref: ${{ github.ref_name }}
1618
is-internal: true
1719
server-id: central
20+
profile: jfrog
21+
secrets:
1822
server-username: ${{ secrets.ARTIFACTORY_USERNAME }}
1923
server-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
2024
gpg-key: ${{ secrets.JFROG_GPG_KEY }}
2125
gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }}
22-
profile: jfrog
26+
27+

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: PR CI Checks
22

3-
on: [pull_request]
3+
# on: [pull_request]
44

55
jobs:
66
check-commit-message:

.github/workflows/shared-build-and-deploy.yml

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,27 @@ on:
1616
description: 'Id of the repository'
1717
required: true
1818
type: string
19-
20-
server-username:
21-
description: 'Username of the repository'
19+
20+
profile:
21+
description: 'Profile to pick from pom.xml'
2222
required: true
2323
type: string
24+
secrets:
25+
server-username:
26+
# description: 'Username of the repository'
27+
required: true
2428

2529
server-password:
26-
description: 'Password of the repository'
30+
# description: 'Password of the repository'
2731
required: true
28-
type: string
2932

3033
gpg-key:
31-
description: 'GPG key to access the repository'
34+
# description: 'GPG key to access the repository'
3235
required: true
33-
type: string
3436

3537
gpg-passphrase:
36-
description: 'GPG passphrase to access the repository'
38+
# description: 'GPG passphrase to access the repository'
3739
required: true
38-
type: string
39-
40-
profile:
41-
description: 'Profile to pick from pom.xml'
42-
required: true
43-
type: string
4440

4541
jobs:
4642
publish:
@@ -59,7 +55,7 @@ jobs:
5955
server-id: ${{ inputs.server-id }}
6056
server-username: SERVER_USERNAME
6157
server-password: SERVER_PASSWORD
62-
gpg-private-key: ${{ inputs.gpg-key }} # Value of the GPG private key to import
58+
gpg-private-key: ${{ secrets.gpg-key }} # Value of the GPG private key to import
6359
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase
6460

6561
- name: Get Previous tag
@@ -77,17 +73,17 @@ jobs:
7773
./ci-scripts/bump_version.sh "${{ steps.previoustag.outputs.tag }}"
7874
fi
7975
80-
- name: Commit changes
81-
run: |
82-
git config user.name ${{ github.actor }}
83-
git config user.email ${{ github.actor }}@users.noreply.github.com
84-
git add pom.xml
85-
if ${{ inputs.is-internal }}; then
86-
git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
87-
git push origin ${{ github.ref_name }} -f
88-
else
89-
git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
90-
git push origin
76+
# - name: Commit changes
77+
# run: |
78+
# git config user.name ${{ github.actor }}
79+
# git config user.email ${{ github.actor }}@users.noreply.github.com
80+
# git add pom.xml
81+
# if ${{ inputs.is-internal }}; then
82+
# git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
83+
# git push origin ${{ github.ref_name }} -f
84+
# else
85+
# git commit -m "[AUTOMATED] Public Release - ${{ steps.previoustag.outputs.tag }}"
86+
# git push origin
9187

9288
- name: Create env
9389
if: ${{ inputs.is-internal }}
@@ -104,10 +100,9 @@ jobs:
104100
name: "credentials.json"
105101
json: ${{ secrets.TEST_CREDENTIALS_FILE_STRING }}
106102

107-
- name: Publish package
108-
run: mvn clean deploy -P ${{ inputs.profile }}
109-
env:
110-
SERVER_USERNAME: ${{ inputs.server-username }}
111-
SERVER_PASSWORD: ${{ inputs.server-password }}
112-
GPG_PASSPHRASE: ${{ inputs.gpg-passphrase }}
113-
103+
# - name: Publish package
104+
# run: mvn clean deploy -P ${{ inputs.profile }}
105+
# env:
106+
# SERVER_USERNAME: ${{ secrets.server-username }}
107+
# SERVER_PASSWORD: ${{ secrets.server-password }}
108+
# GPG_PASSPHRASE: ${{ secrets.gpg-passphrase }}

0 commit comments

Comments
 (0)