More tweaks
Some checks failed
continuous-integration/woodpecker the build failed

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 pipeline:
name: default phpunit:
steps:
- name: phpunit
image: walkero/phpunit-alpine:php8.0-phpunit9 image: walkero/phpunit-alpine:php8.0-phpunit9
commands: commands:
- composer install - composer install
- phpunit - phpunit
- name: dockerbuild - echo -n 'latest,1.0' > .tags
dockerbuild:
image: plugins/docker image: plugins/docker
settings:
repo: docker.noccylabs.info/noccy/pipeline-test repo: docker.noccylabs.info/noccy/pipeline-test
registry: docker.noccylabs.info 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 FROM php:8.0-cli-alpine
WORKDIR /application WORKDIR /application
COPY --from=composer /application /application
COPY . /application
COPY --from=0 /usr/bin/composer /usr/bin/composer
RUN composer install
ENTRYPOINT /application/hello ENTRYPOINT /application/hello