Skip to content

Commit

Permalink
Split RUN commands, fix/updated GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
patschi committed Feb 24, 2024
1 parent 2f66602 commit babd98b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build-parsedmarc-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and push Docker image
uses: docker/build-push-action@v5

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
path: data/Dockerfiles/parsedmarc-init/
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: patschi/parsedmarc
tags: init
add_git_labels: true

- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: data/Dockerfiles/parsedmarc-init/
tags: patschi/parsedmarc:init
push: true
6 changes: 3 additions & 3 deletions data/Dockerfiles/parsedmarc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ RUN apt-get update \
&& apt-get install -y \
python3-pip python3-dev libxml2-dev libxslt-dev libz-dev libxml2-dev \
gcc libemail-outlook-message-perl python3-gi python3-gi-cairo \
gir1.2-secret-1 \
&& pip install -U parsedmarc \
&& apt-get purge --yes gcc && apt autoremove --yes && apt-get clean \
gir1.2-secret-1
RUN pip install -U parsedmarc
RUN apt-get purge --yes gcc && apt autoremove --yes && apt-get clean \
&& rm -Rf /var/lib/{apt,dpkg}/ && rm -Rf /root/.cache/ \
&& chmod +x /start.sh

Expand Down

0 comments on commit babd98b

Please sign in to comment.