Skip to content
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
38 changes: 9 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ jobs:
if: startsWith(github.ref, 'dockerfile-image-update-') == false
steps:
- name: checkout
uses: actions/checkout@main
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: docker build
run: make mvn-docker-build get-main-project-dirs
- name: Upload main module
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: dockerfile-image-update
path: dockerfile-image-update
- name: Upload itest module
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: dockerfile-image-update-itest
path: dockerfile-image-update-itest
Expand All @@ -39,7 +39,7 @@ jobs:
version: ${{ steps.version_tag.outputs.new_version }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: get version
Expand All @@ -52,13 +52,14 @@ jobs:
needs: [build-test, get-next-version]
steps:
- name: checkout
uses: actions/checkout@main
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Download itest dir
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: dockerfile-image-update-itest
path: dockerfile-image-update-itest
- name: integration test
env:
ITEST_GH_TOKEN: ${{ secrets.ITEST_GH_TOKEN }}
Expand All @@ -68,9 +69,10 @@ jobs:
needs: build-test
steps:
- name: Download main project dir
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: dockerfile-image-update
path: dockerfile-image-update
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1.0.10
with:
Expand All @@ -79,25 +81,3 @@ jobs:
# flags: unittests
# yml: ./codecov.yml
fail_ci_if_error: true
codeclimate:
runs-on: ubuntu-latest
needs: build-test
steps:
- name: checkout
uses: actions/checkout@main
with:
ref: ${{ github.ref }}
- name: Download main project dir
uses: actions/download-artifact@v1
with:
name: dockerfile-image-update
- name: Upload coverage to Code Climate
uses: paambaati/codeclimate-action@v2.6.0
env:
CC_TEST_REPORTER_ID: 873529a2ad74a48f14a73b29dd3f392c7da63902534ac0fd224746f32ba77ac5
JACOCO_SOURCE_PATH: "${{github.workspace}}/dockerfile-image-update/src/main/java"
with:
# The report file must be there, otherwise Code Climate won't find it
coverageCommand: echo "already done"
coverageLocations: |
${{github.workspace}}/dockerfile-image-update/target/site/jacoco/jacoco.xml:jacoco
18 changes: 10 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ jobs:
if: startsWith(github.ref, 'dockerfile-image-update-') == false
steps:
- name: checkout
uses: actions/checkout@main
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: docker build
run: make mvn-docker-build get-main-project-dirs
- name: Upload main module
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: dockerfile-image-update
path: dockerfile-image-update
- name: Upload itest module
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: dockerfile-image-update-itest
path: dockerfile-image-update-itest
Expand All @@ -29,7 +29,7 @@ jobs:
version: ${{ steps.version_tag.outputs.new_version }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: get version
Expand All @@ -42,13 +42,14 @@ jobs:
needs: [build-test, get-next-version]
steps:
- name: checkout
uses: actions/checkout@main
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Download itest dir
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: dockerfile-image-update-itest
path: dockerfile-image-update-itest
- name: integration test
env:
ITEST_GH_TOKEN: ${{ secrets.ITEST_GH_TOKEN }}
Expand All @@ -59,13 +60,14 @@ jobs:
if: github.ref == 'refs/heads/main'
steps:
- name: checkout
uses: actions/checkout@main
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Download main project dir
uses: actions/download-artifact@v1
uses: actions/download-artifact@v4
with:
name: dockerfile-image-update
path: dockerfile-image-update
- name: deploy
env:
encrypted_00fae8efff8c_iv: ${{ secrets.encrypted_00fae8efff8c_iv }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG JDK_VERSION
FROM openjdk:${JDK_VERSION}-jre-slim
FROM openjdk:${JDK_VERSION}-ea-slim

ARG MVN_VERSION=1.1-SNAPSHOT
ENV MVN_VERSION=${MVN_VERSION}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all: mvn-docker-build get-itest-jar-from-maven-image integration-test

# JDK_VERSION should be the JDK version we use to source our container dependencies
JDK_VERSION=11
JDK_VERSION=17
MVN_SNAPSHOT_VERSION=1.1-SNAPSHOT

DFIU_DIR=dockerfile-image-update
Expand All @@ -21,7 +21,7 @@ mvn-docker-build:
#TODO: add --abort-on-container-exit to docker-compose once itests can be made not to flap see issue #21
integration-test:
@-echo git_api_token=${ITEST_GH_TOKEN} > $(CURDIR)/itest.env
user_itest_secrets_file_secret=$(CURDIR)/itest.env docker-compose up
user_itest_secrets_file_secret=$(CURDIR)/itest.env docker compose up
rm itest.env

get-main-project-dirs:
Expand Down