Skip to content

Commit

Permalink
Build container on push to this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Jul 14, 2023
1 parent ab640d0 commit 5fb0063
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build-push-docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: build-push-docker-image

on: workflow_dispatch
on:
push:
branches:
- feature/docker_configs

workflow_dispatch:



jobs:
build-push-docker-image:
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ COPY config/packages/parameters.yaml.dist config/packages/parameters.yaml
# Add the config files for Apache2
RUN rm -rf /etc/apache2/sites-enabled/*
COPY ./docker/conf/apache2.conf /etc/apache2/sites-enabled/apache2.conf
RUN rm -rf /var/www/html/var/cache/prod && chown -R www-data /var/www/html/var
RUN mkdir -p /var/www/html/var && \
rm -rf /var/www/html/var/cache/prod && \
chown -R www-data /var/www/html/var

# Set the default workdir
WORKDIR /var/www/html
Expand Down

0 comments on commit 5fb0063

Please sign in to comment.