Skip to content

Commit 368e4c8

Browse files
authored
Merge pull request #195 from pdsinterop/fix/docker-php-unit-path
use main docker images
2 parents 89e94da + 912abc1 commit 368e4c8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/php.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ jobs:
9494
--env 'XDEBUG_MODE=coverage' \
9595
--rm \
9696
--volume="./solid:/var/www/html/apps/solid" \
97-
--workdir=/var/www/html/apps/solid \
98-
ghcr.io/pdsinterop/solid-nextcloud:179_merge-${{ matrix.nextcloud_version }} \
99-
bin/phpunit --configuration phpunit.xml
97+
ghcr.io/${{ github.repository }}:main-${{ matrix.nextcloud_version }} \
98+
bash -c 'NEXTCLOUD_UPDATE=1 /entrypoint.sh "echo" \
99+
&& sudo -u www-data bash /init.sh \
100+
&& cd /var/www/html/apps/solid \
101+
&& bin/phpunit --configuration phpunit.xml'
100102
101103
# 03.quality.php.scan.dependencies-vulnerabilities.yml
102104
scan-dependencies-vulnerabilities:

.github/workflows/solid-tests-suites.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ jobs:
6464
run: |
6565
docker build \
6666
--tag "solid-nextcloud:${{ env.TAG }}" \
67-
--tag "ghcr.io/pdsinterop/solid-nextcloud:${{ env.TAG }}" \
67+
--tag "ghcr.io/${{ github.repository }}:${{ env.TAG }}" \
6868
--build-arg 'NEXTCLOUD_VERSION=${{ matrix.nextcloud_version }}' \
6969
.
70-
docker push "ghcr.io/pdsinterop/solid-nextcloud:${{ env.TAG }}"
70+
docker push "ghcr.io/${{ github.repository }}:${{ env.TAG }}"
7171
mkdir -p cache/solid-nextcloud
7272
docker image save solid-nextcloud:${{ env.TAG }} --output ./cache/solid-nextcloud/${{ github.sha }}-${{ matrix.nextcloud_version }}.tar
7373

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ COPY site.conf /etc/apache2/sites-enabled/000-default.conf
2929

3030
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
3131

32-
RUN composer install --working-dir=/usr/src/nextcloud/apps/solid --no-dev --prefer-dist \
33-
&& rm /usr/local/bin/composer
32+
RUN composer install --working-dir=/usr/src/nextcloud/apps/solid --prefer-dist \
33+
&& rm /usr/local/bin/composer
3434

3535
WORKDIR /var/www/html
3636
EXPOSE 443

0 commit comments

Comments
 (0)