Skip to content

Commit

Permalink
feat(ci): Add nightly deploy for main and recent release branches
Browse files Browse the repository at this point in the history
  • Loading branch information
gansheer authored and squakez committed Feb 2, 2024
1 parent e4c93f4 commit 3881a4e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/actions/automatic-updates/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ inputs:
type: string
secretGithubToken:
required: true
secretNexusUser:
required: true
secretNexusPw:
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -82,3 +86,14 @@ runs:
git config --local user.email "$CI_EMAIL"
git config --local user.name "$CI_USER"
git push "https://$CI_USER:$CI_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:${{ inputs.branch-ref }}
- name: Deploy to ASF Snapshots Repository
shell: bash
env:
NEXUS_DEPLOY_USERNAME: ${{ inputs.secretNexusUser }}
NEXUS_DEPLOY_PASSWORD: ${{ inputs.secretNexusPw }}
MAVEN_OPTS: -Xmx3000m
MAVEN_ARGS: -V -ntp -Dhttp.keepAlive=false -e
# Deploy both artifacts and sources (may be required by Camel K)
run: |
./mvnw ${MAVEN_ARGS} clean deploy -DskipTests -DskipITs --settings .github/asf-deploy-settings.xml
6 changes: 6 additions & 0 deletions .github/workflows/nightly-automatic-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
with:
branch-ref: "main"
secretGithubToken: ${{ secrets.GITHUB_TOKEN }}
secretNexusUser: ${{ secrets.NEXUS_USER }}
secretNexusPw: ${{ secrets.NEXUS_PW }}

release-3_2_x:
if: github.repository == 'apache/camel-k-runtime'
Expand All @@ -56,6 +58,8 @@ jobs:
with:
branch-ref: "release-3.2.x"
secretGithubToken: ${{ secrets.GITHUB_TOKEN }}
secretNexusUser: ${{ secrets.NEXUS_USER }}
secretNexusPw: ${{ secrets.NEXUS_PW }}

release-3_6_x:
if: github.repository == 'apache/camel-k-runtime'
Expand All @@ -73,3 +77,5 @@ jobs:
with:
branch-ref: "release-3.6.x"
secretGithubToken: ${{ secrets.GITHUB_TOKEN }}
secretNexusUser: ${{ secrets.NEXUS_USER }}
secretNexusPw: ${{ secrets.NEXUS_PW }}

0 comments on commit 3881a4e

Please sign in to comment.