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

Updated CI and changelog #401

Merged
merged 3 commits into from
Jan 30, 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
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 && \
Expand All @@ -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 \
Expand All @@ -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 && \
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {

allprojects {
group = 'org.eclipse'
version = '3.0.0-dev'
version = '3.1.0'
}

subprojects {
Expand Down
Loading