You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2020/09/25 19:01:33 UTC

[camel-k-runtime] branch master updated: build: deploy to ASF snapshots from GitHub Actions

This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git


The following commit(s) were added to refs/heads/master by this push:
     new 932416b  build: deploy to ASF snapshots from GitHub Actions
932416b is described below

commit 932416bfaf84786f6b27949ce253cc75e25fca7c
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Fri Sep 25 18:24:32 2020 +0200

    build: deploy to ASF snapshots from GitHub Actions
---
 .github/asf-deploy-settings.xml | 34 +++++++++++++++++++++++++++++
 .github/workflows/ci-build.yml  | 48 ++++++++++++++---------------------------
 2 files changed, 50 insertions(+), 32 deletions(-)

diff --git a/.github/asf-deploy-settings.xml b/.github/asf-deploy-settings.xml
new file mode 100644
index 0000000..b8da75d
--- /dev/null
+++ b/.github/asf-deploy-settings.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="
+            http://maven.apache.org/SETTINGS/1.0.0
+            http://maven.apache.org/xsd/settings-1.0.0.xsd">
+
+  <servers>
+    <server>
+      <id>apache.snapshots.https</id>
+      <username>${env.NEXUS_DEPLOY_USERNAME}</username>
+      <password>${env.NEXUS_DEPLOY_PASSWORD}</password>
+    </server>
+  </servers>
+
+</settings>
\ No newline at end of file
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index a63863a..7be28b6 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -46,39 +46,8 @@ jobs:
       uses: AdoptOpenJDK/install-jdk@v1
       with:
         version: '11'
-    - name: Build camel (master)
-      if: contains( github.event.pull_request.labels.*.name, 'depends-on/camel/master')
-      run: |
-        git clone --depth 1 --branch master https://github.com/apache/camel.git \
-          && cd camel \
-          && echo "Current Camel commit:" $(git rev-parse HEAD) \
-          && ./mvnw -V -B -ntp clean install \
-            -Dfastinstall
-        git clone --depth 1 --branch camel-master https://github.com/apache/camel-quarkus.git \
-          && cd camel-quarkus \
-          && echo "Current Camel Quarkus commit:" $(git rev-parse HEAD) \
-          && ./mvnw -V -B -ntp clean install \
-            -Dformatter.skip \
-            -Dimpsort.skip \
-            -Denforce=false \
-            -Dcamel-quarkus.update-extension-doc-page.skip \
-            -DskipTests \
-            -DskipITs
-    - name: Build camel-quarkus (master)
-      if: contains( github.event.pull_request.labels.*.name, 'depends-on/quarkus/master')
-      run: |
-        git clone --depth 1 --branch master https://github.com/apache/camel-quarkus.git \
-          && cd camel-quarkus \
-          && echo "Current Camel Quarkus commit:" $(git rev-parse HEAD) \
-          && ./mvnw -V -B -ntp clean install \
-            -Dformatter.skip \
-            -Dimpsort.skip \
-            -Denforce=false \
-            -Dcamel-quarkus.update-extension-doc-page.skip \
-            -DskipTests \
-            -DskipITs
     - name: Build camel-k-runtime
-      run: ./mvnw -V -B -ntp clean install
+      run: ./mvnw -V -ntp clean install
     - name: Tar Maven Repo
       shell: bash
       run: tar -czf maven-repo-${{ github.run_id }}-${{ github.run_number }}.tgz -C ~ .m2/repository
@@ -145,6 +114,21 @@ jobs:
             -Dnative-image.xmx=6g \
             -Ddocker \
             -pl ${{ matrix.native-image-project }}
+  deploy:
+    runs-on: ubuntu-latest
+    needs: build-native
+    if: github.ref == 'refs/heads/master'
+    env:
+      NEXUS_DEPLOY_USERNAME: ${{ secrets.NEXUS_USER }}
+      NEXUS_DEPLOY_PASSWORD: ${{ secrets.NEXUS_PWD }}
+    steps:
+    - uses: actions/checkout@v2
+    - name: Set up JDK 11
+      uses: AdoptOpenJDK/install-jdk@v1
+      with:
+        version: '11'
+    - name: Deploy to ASF Snapshots Repository
+      run: ./mvnw -V -ntp clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml
 
 #
 # JS build disabled as fails for OOM