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