This commit is contained in:
parent
938c54be27
commit
d122bf0e3b
@ -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' ]
|
||||
|
||||
|
11
Dockerfile
11
Dockerfile
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user