From 1ad0593ff9483e3cc9522097a0dd35165fb44f9c Mon Sep 17 00:00:00 2001 From: Chris Phillips Date: Sun, 27 Feb 2022 11:01:54 -0800 Subject: [PATCH] feat(publishing): artifact registry publishing 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 --- .github/workflows/release.yml | 8 ++++++++ rosco-web/rosco-web.gradle | 1 + 2 files changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8cef72c458..ea892e56a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,14 @@ 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 + GAR_JSON_KEY: ${{ secrets.GAR_JSON_KEY }} + run: | + ./gradlew --info publish - name: Create release if: steps.release_info.outputs.SKIP_RELEASE == 'false' uses: actions/create-release@v1 diff --git a/rosco-web/rosco-web.gradle b/rosco-web/rosco-web.gradle index 269c713eaf..92242c1452 100644 --- a/rosco-web/rosco-web.gradle +++ b/rosco-web/rosco-web.gradle @@ -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())