Skip to content

Commit

Permalink
Update docker hub action, try cache
Browse files Browse the repository at this point in the history
  • Loading branch information
René Meier committed Jan 12, 2022
1 parent f31d0f7 commit 46fccf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Check out the repo
uses: actions/checkout@v2


- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
Expand All @@ -32,6 +30,6 @@ jobs:
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

tags: ipbhalle/metfragweb:latest
cache-from: type=registry,ref=ipbhalle/metfragweb:latest
cache-to: type=inline
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ RUN mvn -f MetFragRelaunched clean package -pl MetFragLib -pl MetFragWeb -am -Ds


FROM tomcat:9-jdk11
COPY --from=builder /MetFragRelaunched/MetFragWeb/target/MetFragWeb.war /usr/local/tomcat/webapps/

RUN wget -q -O- https://msbi.ipb-halle.de/~sneumann/file_databases.tgz | tar -C / -xzf -
RUN cd /vol/file_databases; \
Expand All @@ -36,6 +35,7 @@ RUN cd /vol/file_databases; \
wget -q https://zenodo.org/record/3957497/files/HBM4EU_CECscreen_MF_1Jul2020_plusTPs.csv; \
wget -q https://zenodo.org/record/3564602/files/BloodExposomeDB_03Dec2019.csv

COPY --from=builder /MetFragRelaunched/MetFragWeb/target/MetFragWeb.war /usr/local/tomcat/webapps/
RUN printf '#!/bin/sh \n\
if [ -f "/resources/settings.properties" ] \n\
then \n\
Expand Down

0 comments on commit 46fccf2

Please sign in to comment.