Skip to content

Commit

Permalink
Update workflow and Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfghjkxd committed Mar 15, 2024
1 parent 0462602 commit 6d4e0c4
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 24 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Builds Docker Images

on:
push:
branches-ignore:
- gh-pages
pull_request:
branches-ignore:
- gh-pages

env:
OUTDIR: "out"

jobs:
build-test-containers:
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./docker/Dockerfile.ubuntu2004
tag: asdfghjklxd/reposense-docker-test:ubuntu-20-04
os: Ubuntu 20.04
- dockerfile: ./docker/Dockerfile.ubuntu2204
tag: asdfghjklxd/reposense-docker-test:ubuntu-22-04
os: Ubuntu 22.04
name: ${{ matrix.os }} (Java 8, 11)
runs-on: ubuntu-latest
steps:
- name: Checkout V4
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build Docker Image
run: |
docker build -t ${{ matrix.tag }} -f ${{ matrix.dockerfile }} -o ${{ env.OUTDIR }} .
# - name: Upload Code Coverage (Java 8)
# if: ${{ success() }}
# uses: codecov/codecov-action@v3
# with:
# directory: ${{ github.workspace }}/${{ env.OUTDIR }}/reports/java8
# files: coverage.xml
# fail_ci_if_error: true
# - name: Upload Code Coverage (Java 11)
# if: ${{ success() }}
# uses: codecov/codecov-action@v3
# with:
# directory: ${{ github.workspace }}/${{ env.OUTDIR }}/reports/java11
# files: coverage.xml
# fail_ci_if_error: true
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

1 change: 1 addition & 0 deletions docker/Dockerfile.ubuntu2004
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ RUN mv -f reports/coverage reports/java8
# test java 11
RUN export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 && \
update-java-alternatives --set /usr/lib/jvm/java-1.11.0-openjdk-amd64;
RUN ./gradlew clean
RUN ./gradlew environmentalChecks
RUN ./gradlew lintFrontend
RUN ./gradlew clean
Expand Down

0 comments on commit 6d4e0c4

Please sign in to comment.