mirror of
https://github.com/OpenBankProject/API-Explorer.git
synced 2026-02-06 10:47:23 +00:00
fixed build pipeline
This commit is contained in:
parent
aa4fea20d4
commit
305515d09a
2
.github/Dockerfile_PreBuild
vendored
2
.github/Dockerfile_PreBuild
vendored
@ -1,4 +1,4 @@
|
||||
FROM jetty:9.4-jre11-slim
|
||||
FROM jetty:9.4.49-jre11-alpine
|
||||
|
||||
# Copy OBP source code
|
||||
# Copy build artifact (.war file) into jetty from 'maven' stage.
|
||||
|
||||
10
.github/Dockerfile_PreBuild_OC
vendored
Normal file
10
.github/Dockerfile_PreBuild_OC
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
FROM jetty:9.4.49-jre11-alpine
|
||||
|
||||
# Copy OBP source code
|
||||
# Copy build artifact (.war file) into jetty from 'maven' stage.
|
||||
COPY /target/API_Explorer-1.0.war /var/lib/jetty/webapps/ROOT.war
|
||||
USER root
|
||||
RUN chgrp -R 0 /tmp/jetty && chmod -R g+rwX /tmp/jetty
|
||||
RUN chgrp -R 0 /var/lib/jetty && chmod -R g+rwX /var/lib/jetty
|
||||
RUN chgrp -R 0 /usr/local/jetty && chmod -R g+rwX /usr/local/jetty
|
||||
USER jetty
|
||||
3
.github/workflows/build_package.yml
vendored
3
.github/workflows/build_package.yml
vendored
@ -25,7 +25,8 @@ jobs:
|
||||
- name: Build the Docker image
|
||||
run: |
|
||||
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin docker.io
|
||||
docker build . --file .github/Dockerfile_PreBuild --tag docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:$GITHUB_SHA --tag docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:latest --tag docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:develop
|
||||
docker build . --file .github/Dockerfile_PreBuild --tag docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:v100.0.2
|
||||
docker build . --file .github/Dockerfile_PreBuild_OC --tag docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }}:v100.0.2-OC
|
||||
docker push docker.io/${{ env.DOCKER_HUB_ORGANIZATION }}/${{ env.DOCKER_HUB_REPOSITORY }} --all-tags
|
||||
echo docker done
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user