-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from p2m2/develop
pass to 1.1.0
- Loading branch information
Showing
3 changed files
with
88 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# © 2024 INRAE | ||
# SPDX-FileContributor: Marcellino Palerme <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: publish | ||
|
||
on: | ||
pull_request: | ||
branches: 'main' | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
checks: write | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
name: Checkout repository | ||
|
||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.MY_TOKEN }} | ||
|
||
- name: set lower case owner name | ||
id: set_owner_lc | ||
env: | ||
OWNER: '${{ github.repository_owner }}' | ||
run: | | ||
echo "OWNER_LC=${OWNER,,}" >> "$GITHUB_OUTPUT" | ||
- name: Build Docker image | ||
env: | ||
OWNER: ${{ steps.set_owner_lc.outputs.OWNER_LC }} | ||
run: | | ||
docker build -f DockerfileQuay -t ghcr.io/${{ env.OWNER }}/service-p2m2tools-api:latest -t ghcr.io/${{ env.OWNER }}/service-p2m2tools-api:1.1.0 --build-arg TEAM=${{ env.OWNER }} . | ||
- name: Push Docker image | ||
env: | ||
OWNER: ${{ steps.set_owner_lc.outputs.OWNER_LC }} | ||
run: | | ||
docker push -a ghcr.io/${{ env.OWNER }}/service-p2m2tools-api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# © 2024 INRAE | ||
# SPDX-FileContributor: Marcellino Palerme <[email protected]> | ||
# | ||
# SPDX-License-Identifier: MIT | ||
|
||
ARG TEAM | ||
|
||
FROM ghcr.io/${TEAM}/scala-sbt:latest | ||
|
||
LABEL author="Olivier Filangi" | ||
LABEL maintainer="Marcellino Palerme <[email protected]>" | ||
LABEL mail="[email protected]" | ||
ENV MILL_VERSION="0.11.2" | ||
|
||
EXPOSE 8080 | ||
|
||
COPY . /service-p2m2tools-api/ | ||
WORKDIR /service-p2m2tools-api/ | ||
RUN curl -L https://github.com/com-lihaoyi/mill/releases/download/${MILL_VERSION}/${MILL_VERSION} > mill &&\ | ||
chmod +x mill &&\ | ||
./mill app.test &&\ | ||
./mill app.assembly | ||
|
||
CMD ["java","-jar","./out/app/assembly.dest/out.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters