+++ /dev/null
----
-# SPDX-License-Identifier: Apache-2.0
-# Copyright 2024 The Linux Foundation <abelur@linux.com>
-
-name: call-github2gerrit-reusable-workflow
-
-# yamllint disable-line rule:truthy
-on:
- workflow_dispatch:
- pull_request_target:
- types: [opened, reopened, edited, synchronize]
- branches:
- - master
-
-concurrency:
- # yamllint disable-line rule:line-length
- group: ${{ github.workflow }}-${{ github.run_id }}
- cancel-in-progress: true
-
-jobs:
- call-in-g2g-workflow:
- permissions:
- contents: read
- pull-requests: write
- uses: lfit/github2gerrit/.github/workflows/github2gerrit.yaml@main
- with:
- GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }}
- GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }}
- GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }}
- ORGANIZATION: ${{ vars.ORGANIZATION }}
- secrets:
- GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}
\ No newline at end of file
+++ /dev/null
-# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
-# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
-
-# This workflow uses actions that are not certified by GitHub.
-# They are provided by a third-party and are governed by
-# separate terms of service, privacy policy, and support
-# documentation.
-
-name: Java CI with Maven
-
-on:
- workflow_dispatch:
- push:
- branches: [ "master" ]
- pull_request:
- branches: [ "master" ]
-
-permissions:
- contents: write
- packages: write
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
- env:
- GH_PAT: ${{ secrets.GITHUB_TOKEN }}
-
- steps:
- - name: Checkout
- uses: actions/checkout@v4
-
- - name: Set up JDK 21 and maven 3.9.9
- uses: actions/setup-java@v4
- with:
- java-version: '21'
- distribution: 'temurin'
- cache: maven
-
- - name: Install Maven 3.9.9
- run: |
- MAVEN_VERSION=3.9.9
- curl -sL https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xz
- sudo mv apache-maven-$MAVEN_VERSION /opt/maven
- echo "MAVEN_HOME=/opt/maven" >> $GITHUB_ENV
- echo "/opt/maven/bin" >> $GITHUB_PATH
-
- - name: Check Maven version
- run: mvn -v
-
- - name: ๐งพ Print All Environment Variables
- run: env
-
- - name: ๐ Deploy to GitHub Packages
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: mvn -s ${GITHUB_WORKSPACE}/settings.xml --file ${GITHUB_WORKSPACE}/parents/pom.xml deploy -DaltDeploymentRepository=github::default::https://maven.pkg.github.com/o-ran-sc/oam-oam-controller -DskipTests=true
-