From 62c93c2cc1d2a2506129ffb3d55e24aec1badf9f Mon Sep 17 00:00:00 2001 From: Neha Naithani Date: Wed, 31 Jan 2024 11:07:54 +1300 Subject: [PATCH] Updated CI and changelog (#401) * Updated CI and changelog * Updated dockerfile to support java-17 * Updated ci yaml --- .github/workflows/ci.yaml | 20 ++++++++++++++++++++ CHANGELOG.md | 4 ++++ Dockerfile | 8 ++++---- build.gradle | 2 +- 4 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2404ec93..0bae2979 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -233,6 +233,26 @@ jobs: PACKAGECLOUD-DISTRIB: rpm_any/rpm_any PACKAGECLOUD-TOKEN: ${{ secrets.packagecloud_token }} + - name: Publish tagged deb package to packagecloud + if: contains(github.ref_name, '^v.*') + uses: danielmundi/upload-packagecloud@v1 + with: + PACKAGE-NAME: iofog-agent_${{ steps.pkg_version.outputs.version }}_all.deb + PACKAGECLOUD-USERNAME: iofog + PACKAGECLOUD-REPO: iofog-agent + PACKAGECLOUD-DISTRIB: any/any + PACKAGECLOUD-TOKEN: ${{ secrets.packagecloud_token }} + + - name: Publish tagged rpm package to packagecloud + if: contains(github.ref_name, '^v.*') + uses: danielmundi/upload-packagecloud@v1 + with: + PACKAGE-NAME: packaging/iofog-agent/iofog-agent-${{ steps.sub.outputs.result }}-1.noarch.rpm + PACKAGECLOUD-USERNAME: iofog + PACKAGECLOUD-REPO: iofog-agent + PACKAGECLOUD-DISTRIB: rpm_any/rpm_any + PACKAGECLOUD-TOKEN: ${{ secrets.packagecloud_token }} + - name: Upload Agent Artifact uses: actions/upload-artifact@v3 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b104fcf..5a3eddde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Changelog ## [unreleased] +## [v3.1.0] - 30 -June 2024 +* Migrated junit4 to junit5 +* Support for java17 +* Upgraded gradle to v8.4 ## [v3.0.1] - 16- May 2022 * Declared Agent dependency i.e. java and docker. diff --git a/Dockerfile b/Dockerfile index 5dee4996..2a81fb79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM docker.io/library/ubuntu:20.04 AS builder +FROM docker.io/library/ubuntu:22.04 AS builder RUN apt-get update && \ apt-get install -y unzip apt-utils curl openjdk-17-jdk && \ @@ -12,7 +12,7 @@ ARG GRADLE_BASE_URL=https://services.gradle.org/distributions # 3- Define the SHA key to validate the gradle download # obtained from here https://gradle.org/release-checksums/ -ARG GRADLE_SHA=c8c17574245ecee9ed7fe4f6b593b696d1692d1adbfef425bef9b333e3a0e8de +ARG GRADLE_SHA=3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae # 4- Create the directories, download gradle, validate the download, install it, remove downloaded file and set links RUN mkdir -p /usr/share/gradle /usr/share/gradle/ref \ @@ -39,9 +39,9 @@ VOLUME $GRADLE_USER_HOME COPY . . -RUN gradle build copyJar -x test --no-daemon +RUN gradle build copy -x test --no-daemon -FROM registry.access.redhat.com/ubi8/ubi-minimal:latest +FROM registry.access.redhat.com/ubi8/ubi-minimal:8.5 RUN true && \ microdnf install -y curl ca-certificates java-17-openjdk-headless sudo shadow-utils && \ diff --git a/build.gradle b/build.gradle index eeb7b0af..3e5d6d0e 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ plugins { allprojects { group = 'org.eclipse' - version = '3.0.0-dev' + version = '3.1.0' } subprojects {