Skip to content

Commit

Permalink
feat(publishing): artifact registry publishing
Browse files Browse the repository at this point in the history
Incorporates the new io.spinnaker.artifactregistry-publish plugin to rosco-web. This will publish the apt and rpm packages for rosco to the Google Artifact Registry
  • Loading branch information
chris-h-phillips committed Feb 27, 2022
1 parent 40b7004 commit 0e51330
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ jobs:
ORG_GRADLE_PROJECT_nexusPgpSigningPassword: ${{ secrets.NEXUS_PGP_SIGNING_PASSWORD }}
run: |
./gradlew --info publishToNexus closeAndReleaseNexusStagingRepository
- name: Publish apt and rpm packages to Google Artifact Registry
env:
ORG_GRADLE_PROJECT_version: ${{ steps.release_info.outputs.RELEASE_VERSION }}
ORG_GRADLE_PROJECT_artifactRegistryPublishEnabled: true
ORG_GRADLE_PROJECT_artifactRegistryPublishAptEnabled: true
ORG_GRADLE_PROJECT_artifactRegistryPublishRpmEnabled: true
GAR_JSON_KEY: ${{ secrets.GAR_JSON_KEY }}
GOOGLE_APPLICATION_CREDENTIALS: /tmp/gar_json_key
run: |
echo "${GAR_JSON_KEY}" > ${GOOGLE_APPLICATION_CREDENTIALS}
./gradlew --info publish
- name: Create release
if: steps.release_info.outputs.SKIP_RELEASE == 'false'
uses: actions/create-release@v1
Expand Down
1 change: 1 addition & 0 deletions rosco-web/rosco-web.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'io.spinnaker.package'
apply plugin: 'io.spinnaker.artifactregistry-publish'

ext {
springConfigLocation = System.getProperty('spring.config.additional-location', "${System.getProperty('user.home')}/.spinnaker/".toString())
Expand Down

0 comments on commit 0e51330

Please sign in to comment.