Use env for secrets.COMMERCIAL_ARTIFACTORY_URL

This commit is contained in:
Artem Bilan
2024-06-28 14:21:40 -04:00
parent d993edd631
commit 7a5175e949
3 changed files with 11 additions and 3 deletions

View File

@@ -11,11 +11,14 @@ concurrency:
group: group-snapshot-for-${{ github.ref }}
cancel-in-progress: true
env:
ARTIFACTORY_URL: ${{ secrets.COMMERCIAL_ARTIFACTORY_URL }}
jobs:
build-snapshot:
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-snapshot.yml@main
with:
artifactoryUrl: ${{ secrets.COMMERCIAL_ARTIFACTORY_URL }}
artifactoryUrl: ${{ env.ARTIFACTORY_URL }}
targetRepository: spring-enterprise-maven-dev-local
artifactoryProjectKey: spring
runner: ubuntu22-2-8

View File

@@ -13,12 +13,14 @@ on:
description: 'The Artifactory Build Number'
required: true
env:
ARTIFACTORY_URL: ${{ secrets.COMMERCIAL_ARTIFACTORY_URL }}
jobs:
distribute-release-to-spring-enterprise:
uses: spring-io/spring-github-workflows/.github/workflows/spring-enterprise-release-bundle.yml@main
with:
artifactoryUrl: ${{ secrets.COMMERCIAL_ARTIFACTORY_URL }}
artifactoryUrl: ${{ env.ARTIFACTORY_URL }}
bundleName: TNZ-${{ github.event.repository.name }}
releaseVersion: ${{ inputs.releaseVersion }}
buildName: ${{ inputs.buildName }}

View File

@@ -5,6 +5,9 @@ on:
run-name: Release current version for branch ${{ github.ref_name }}
env:
ARTIFACTORY_URL: ${{ secrets.COMMERCIAL_ARTIFACTORY_URL }}
jobs:
release:
permissions:
@@ -14,7 +17,7 @@ jobs:
uses: spring-io/spring-github-workflows/.github/workflows/spring-artifactory-gradle-release.yml@main
with:
artifactoryUrl: ${{ secrets.COMMERCIAL_ARTIFACTORY_URL }}
artifactoryUrl: ${{ env.ARTIFACTORY_URL }}
stagingRepository: spring-enterprise-maven-stage-local
targetReleaseRepository: spring-enterprise-maven-prod-local
artifactoryProjectKey: spring