Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ci): Add nightly deploy for main and recent release branches #1164

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading