Skip to content

Commit

Permalink
fix CI (docker actions) and build a proper image
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne committed Oct 30, 2024
1 parent 58ac11e commit 8a934d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
pull_request:
branches:
- 'master'
- 'alpine'

jobs:
docker:
Expand Down Expand Up @@ -55,7 +56,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GIT_PACKAGES_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3
Expand Down
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,16 @@ COPY assets/000-default.conf /etc/apache2/sites-available/
COPY assets/ducrc /etc/
COPY assets/duc_startup.sh /duc/

#create a starter database so that we can set permissions for cgi access
# create a starter database so that we can set permissions for cgi access
RUN mkdir /var/www/duc && \
mkdir /host && \
chmod 777 /duc/ && \
duc index /host/ && \
chmod 777 /duc/.duc.db && \
a2enmod cgi && \
chmod +x /duc/duc_startup.sh
chmod 777 /duc/

# DEBUG BELOW IS COMMENTED TO ALLOW SUCESSFULL IMAGE BUILD TO DEBUG CURRENT ISSUES WITH DUC
# RUN duc index /host/ && \
# chmod 777 /duc/.duc.db && \
# a2enmod cgi && \
# chmod +x /duc/duc_startup.sh

ENV DUC_CGI_OPTIONS --list --tooltip --dpi=120
EXPOSE 80
Expand Down

0 comments on commit 8a934d7

Please sign in to comment.