diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml new file mode 100644 index 0000000..d1480fb --- /dev/null +++ b/.github/workflows/cicd.yaml @@ -0,0 +1,24 @@ +name: Protobuff-converter +on: + workflow_dispatch: + push: + branches: + - 'master' + - 'map-support' + - 'PD-16831' + +env: + BUILD_TAG: ${{ github.ref_name }}-${{ github.run_number }} +jobs: + build: + name: Trigger Build and Push of Docker Image + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Set GAR auth + run: | + gcloud auth configure-docker asia-south1-docker.pkg.dev --quiet + - name: Gradle Build + run: | + gradle publish \ No newline at end of file diff --git a/build.gradle b/build.gradle index 00e732e..dbfa052 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id "com.google.protobuf" version "0.8.5" + id "com.google.cloud.artifactregistry.gradle-plugin" version "2.2.0" } apply plugin: 'java' @@ -12,6 +13,7 @@ group = 'com.github.BAData' version = externalVersion repositories { + maven { url = 'artifactregistry://asia-south1-maven.pkg.dev/greyt-container/greytip-maven' } mavenCentral() } @@ -73,14 +75,7 @@ publishing { } repositories { - maven { - url nexusUrl - name "nexus" - credentials { - username nexusUserName - password nexusPassword - } - } + maven { url = 'artifactregistry://asia-south1-maven.pkg.dev/greyt-container/greytip-maven' } } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index c5446d1..a11ec26 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Fri May 06 16:25:28 EEST 2016 +#Mon Dec 16 15:31:49 IST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-4.5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-bin.zip