forked from eclipse-hawkbit/hawkbit-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub workflow that smoke-builds all extensions
This is known to pass, today, on x86_64 and fail on aarch64 due to eclipse-hawkbit#84 Since the goal is to test unreleased HawkBit + unreleased HawkBit extensions, both are built in sequence to satisfy dependencies that are not available through maven as releases. HawkBit tests are skipped to speed up the build process. Signed-off-by: Zygmunt Krynicki <[email protected]>
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Build against current HawkBit | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-without-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Smoke build in docker | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM ubuntu:22.04 AS build | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y openjdk-11-jdk-headless maven git | ||
|
||
WORKDIR /src | ||
RUN git clone https://github.com/eclipse/hawkbit | ||
WORKDIR /src/hawkbit | ||
RUN mvn --quiet --batch-mode --threads 1C dependency:go-offline dependency:resolve-plugins | ||
RUN mvn --quiet --batch-mode --threads 1C --define=skipTests package | ||
RUN mvn --quiet --batch-mode --threads 1C --define=skipTests --offline install | ||
|
||
WORKDIR /src/hawkbit-extensions | ||
COPY . . | ||
RUN mvn --quiet --batch-mode --threads 1C dependency:go-offline dependency:resolve-plugins | ||
RUN mvn --quiet --batch-mode --threads 1C package | ||
RUN mvn --quiet --batch-mode --threads 1C --offline install |