Skip to content

Commit

Permalink
run build
Browse files Browse the repository at this point in the history
  • Loading branch information
alerman committed Sep 27, 2024
1 parent f6592a4 commit a34e488
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/build-accumulo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,27 @@ jobs:
java-version: ${{env.JAVA_VERSION}}
cache: 'maven'
- name: Build Accumulo
id: build-accumulo
run: |
cd $GITHUB_WORKSPACE/accumulo
echo $(git rev-parse --short HEAD)
# mvn -V -B -e -ntp "-Dstyle.color=always" -DskipTests -T1C clean deploy -s $GITHUB_WORKSPACE/datawave/.github/workflows/settings.xml
# cd $GITHUB_WORKSPACE

# - name: Extract Maven project version
# run: echo version=$(cd $GITHUB_WORKSPACE/accumulo && mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) >> $GITHUB_OUTPUT
# id: project

# - name: Log in to the Container registry
# uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ env.USER_NAME }}
# password: ${{ env.ACCESS_TOKEN }}
# - name: Update DataWave Dependency Version
# run: |
# cd $GITHUB_WORKSPACE/datawave
# mvn -s $GITHUB_WORKSPACE/datawave.github/workflows/settings.xml versions:set-property -Dproperty=version.accumulo -DnewVersion=${{ steps.project.outputs.version }} -DgenerateBackupPoms=false
# - name: Build Web and Ingest Docker Images (Maven)
# run: |
# cd $GITHUB_WORKSPACE/datawave
# mvn -s $GITHUB_WORKSPACE/datawave.github/workflows/settings.xml clean install -Prpm,kubernetes,assemble,deploy-ws -Ddist -Pdocker -DpushImage -Ddocker-release -DskipTests
export NEWVERSION=$(mvn help:evaluate -Dexpression=project.version.major -q -DforceStdout).$(mvn help:evaluate -Dexpression=project.version.minor -q -DforceStdout).$(mvn help:evaluate -Dexpression=project.version.incremental -q -DforceStdout)-$(git rev-parse --short HEAD)
echo accumuloversion=$NEWVERSION >> $GITHUB_OUTPUT
mvn versions:set -DnewVersion=$NEWVERSION
mvn -V -B -e -ntp "-Dstyle.color=always" -DskipTests -T1C clean deploy -s $GITHUB_WORKSPACE/datawave/.github/workflows/settings.xml
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.USER_NAME }}
password: ${{ env.ACCESS_TOKEN }}
- name: Update DataWave Dependency Version
run: |
cd $GITHUB_WORKSPACE/datawave
mvn -s $GITHUB_WORKSPACE/datawave.github/workflows/settings.xml versions:set-property -Dproperty=version.accumulo -DnewVersion=${{ steps.build-accumulo.outputs.accumuloversion }} -DgenerateBackupPoms=false
- name: Build Web and Ingest Docker Images (Maven)
run: |
cd $GITHUB_WORKSPACE/datawave
mvn -s $GITHUB_WORKSPACE/datawave.github/workflows/settings.xml clean install -Prpm,kubernetes,assemble,deploy-ws -Ddist -Pdocker -DpushImage -Ddocker-release -DskipTests

0 comments on commit a34e488

Please sign in to comment.