Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ jobs:
ref: ${{ github.ref_name }}
is-internal: true
server-id: central
profile: jfrog
secrets:
server-username: ${{ secrets.ARTIFACTORY_USERNAME }}
server-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
gpg-key: ${{ secrets.JFROG_GPG_KEY }}
gpg-passphrase: ${{ secrets.JFROG_GPG_PASSPHRASE }}
profile: jfrog


29 changes: 10 additions & 19 deletions .github/workflows/shared-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,23 @@ on:
description: 'Id of the repository'
required: true
type: string

server-username:
description: 'Username of the repository'
profile:
description: 'Profile to pick from pom.xml'
required: true
type: string
secrets:
server-username:
required: true

server-password:
description: 'Password of the repository'
required: true
type: string

gpg-key:
description: 'GPG key to access the repository'
required: true
type: string

gpg-passphrase:
description: 'GPG passphrase to access the repository'
required: true
type: string

profile:
description: 'Profile to pick from pom.xml'
required: true
type: string

jobs:
publish:
Expand All @@ -59,7 +51,7 @@ jobs:
server-id: ${{ inputs.server-id }}
server-username: SERVER_USERNAME
server-password: SERVER_PASSWORD
gpg-private-key: ${{ inputs.gpg-key }} # Value of the GPG private key to import
gpg-private-key: ${{ secrets.gpg-key }} # Value of the GPG private key to import
gpg-passphrase: GPG_PASSPHRASE # env variable for GPG private key passphrase

- name: Get Previous tag
Expand Down Expand Up @@ -107,7 +99,6 @@ jobs:
- name: Publish package
run: mvn clean deploy -P ${{ inputs.profile }}
env:
SERVER_USERNAME: ${{ inputs.server-username }}
SERVER_PASSWORD: ${{ inputs.server-password }}
GPG_PASSPHRASE: ${{ inputs.gpg-passphrase }}

SERVER_USERNAME: ${{ secrets.server-username }}
SERVER_PASSWORD: ${{ secrets.server-password }}
GPG_PASSPHRASE: ${{ secrets.gpg-passphrase }}
Loading