Skip to content

Commit

Permalink
OK-567 Build ovara-suoritusrekisteri
Browse files Browse the repository at this point in the history
  • Loading branch information
msiukola committed Jun 28, 2024
1 parent ccb8dea commit 9844148
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,19 @@ jobs:
run: |
git clone https://github.com/Opetushallitus/ci-tools.git
source ci-tools/common/setup-tools.sh
export ARTIFACT_NAME="suoritusrekisteri"
mv target/suoritusrekisteri*allinone.jar $DOCKER_BUILD_DIR/artifact/${ARTIFACT_NAME}.jar
jar xf $DOCKER_BUILD_DIR/artifact/${ARTIFACT_NAME}.jar META-INF/native
mv suoritusrekisteri/target/suoritusrekisteri*allinone.jar $DOCKER_BUILD_DIR/artifact/suoritusrekisteri.jar
jar xf $DOCKER_BUILD_DIR/artifact/suoritusrekisteri.jar META-INF/native
mv META-INF/native $DOCKER_BUILD_DIR/native_libs
cp -vr src/main/resources/* $DOCKER_BUILD_DIR/config/
cp -vr suoritusrekisteri/src/main/resources/* $DOCKER_BUILD_DIR/config/
./ci-tools/common/clean-docker-build-dir.sh
mv ovara-suoritusrekisteri/target/ovara-suoritusrekisteri*allinone.jar $DOCKER_BUILD_DIR/artifact/ovara-suoritusrekisteri.jar
jar xf $DOCKER_BUILD_DIR/artifact/ovara-suoritusrekisteri.jar META-INF/native
mv META-INF/native $DOCKER_BUILD_DIR/native_libs
cp -vr ovara-suoritusrekisteri/src/main/resources/* $DOCKER_BUILD_DIR/config/
export BASE_IMAGE="baseimage-fatjar-openjdk11:master"
./ci-tools/common/pull-image.sh
./ci-tools/github-build/build-fatjar.sh $ARTIFACT_NAME
./ci-tools/github-build/upload-image.sh $ARTIFACT_NAME
./ci-tools/github-build/build-fatjar.sh suoritusrekisteri
./ci-tools/github-build/upload-image.sh suoritusrekisteri
./ci-tools/github-build/upload-image.sh ovara-suoritusrekisteri

0 comments on commit 9844148

Please sign in to comment.