More tweaks
continuous-integration/woodpecker the build failed Details

This commit is contained in:
Chris 2021-12-03 17:19:28 +01:00
parent 938c54be27
commit d122bf0e3b
2 changed files with 14 additions and 18 deletions

View File

@ -1,15 +1,12 @@
kind: pipeline
name: default
steps:
- name: phpunit
image: walkero/phpunit-alpine:php8.0-phpunit9
commands:
- composer install
- phpunit
- name: dockerbuild
image: plugins/docker
settings:
pipeline:
phpunit:
image: walkero/phpunit-alpine:php8.0-phpunit9
commands:
- composer install
- phpunit
- echo -n 'latest,1.0' > .tags
dockerbuild:
image: plugins/docker
repo: docker.noccylabs.info/noccy/pipeline-test
registry: docker.noccylabs.info
tags: [ latest, '1.0' ]

View File

@ -1,12 +1,11 @@
FROM composer:latest
FROM composer:latest as composer
WORKDIR /application
COPY . /application
RUN composer install
FROM php:8.0-cli-alpine
WORKDIR /application
COPY . /application
COPY --from=0 /usr/bin/composer /usr/bin/composer
RUN composer install
COPY --from=composer /application /application
ENTRYPOINT /application/hello