feat: reverse behavior
This commit is contained in:
parent
e8ee078a2f
commit
0e388bbbda
3 changed files with 10 additions and 10 deletions
|
@ -63,16 +63,16 @@ ncc-docker:
|
|||
exists:
|
||||
- Dockerfile
|
||||
|
||||
ncc-docker-alpine:
|
||||
ncc-docker-debian:
|
||||
image: docker:latest
|
||||
services:
|
||||
- docker:dind
|
||||
before_script:
|
||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||
script:
|
||||
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}-alpine" .
|
||||
- docker push "$CI_REGISTRY_IMAGE${tag}-alpine"
|
||||
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}-debian" .
|
||||
- docker push "$CI_REGISTRY_IMAGE${tag}-debian"
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_BRANCH == 'dev'
|
||||
exists:
|
||||
- Dockerfile.alpine
|
||||
- Dockerfile.debian
|
||||
|
|
|
@ -44,7 +44,7 @@ RUN git clone https://git.n64.cc/nosial/ncc.git;
|
|||
# Main stage: Copies downloaded files and installs all
|
||||
#
|
||||
|
||||
FROM php:8.1-fpm
|
||||
FROM php:8.1-fpm-alpine
|
||||
|
||||
# Add extensions
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
@ -57,8 +57,8 @@ RUN install-php-extensions mbstring \
|
|||
ctype \
|
||||
common; \
|
||||
|
||||
# Add git
|
||||
apt install -y git; \
|
||||
# Add git and tar
|
||||
apk add git tar; \
|
||||
|
||||
# Install phive, phab and ncc; create workdir
|
||||
chmod +x phive.phar; \
|
||||
|
|
|
@ -44,7 +44,7 @@ RUN git clone https://git.n64.cc/nosial/ncc.git;
|
|||
# Main stage: Copies downloaded files and installs all
|
||||
#
|
||||
|
||||
FROM php:8.1-fpm-alpine
|
||||
FROM php:8.1-fpm
|
||||
|
||||
# Add extensions
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
@ -57,8 +57,8 @@ RUN install-php-extensions mbstring \
|
|||
ctype \
|
||||
common; \
|
||||
|
||||
# Add git and tar
|
||||
apk add git tar; \
|
||||
# Add git
|
||||
apt install -y git; \
|
||||
|
||||
# Install phive, phab and ncc; create workdir
|
||||
chmod +x phive.phar; \
|
Loading…
Add table
Reference in a new issue