diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a23355b --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..af44a97 --- /dev/null +++ b/Dockerfile @@ -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