feat: reverse behavior

This commit is contained in:
badPointer 2023-07-23 17:44:04 +00:00
parent e8ee078a2f
commit 0e388bbbda
3 changed files with 10 additions and 10 deletions

View file

@ -63,16 +63,16 @@ ncc-docker:
exists: exists:
- Dockerfile - Dockerfile
ncc-docker-alpine: ncc-docker-debian:
image: docker:latest image: docker:latest
services: services:
- docker:dind - docker:dind
before_script: before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script: script:
- docker build --pull -t "$CI_REGISTRY_IMAGE${tag}-alpine" . - docker build --pull -t "$CI_REGISTRY_IMAGE${tag}-debian" .
- docker push "$CI_REGISTRY_IMAGE${tag}-alpine" - docker push "$CI_REGISTRY_IMAGE${tag}-debian"
rules: rules:
- if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_BRANCH == 'dev' - if: $CI_COMMIT_BRANCH == 'master' || $CI_COMMIT_BRANCH == 'dev'
exists: exists:
- Dockerfile.alpine - Dockerfile.debian

View file

@ -44,7 +44,7 @@ RUN git clone https://git.n64.cc/nosial/ncc.git;
# Main stage: Copies downloaded files and installs all # Main stage: Copies downloaded files and installs all
# #
FROM php:8.1-fpm FROM php:8.1-fpm-alpine
# Add extensions # Add extensions
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 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 \ ctype \
common; \ common; \
# Add git # Add git and tar
apt install -y git; \ apk add git tar; \
# Install phive, phab and ncc; create workdir # Install phive, phab and ncc; create workdir
chmod +x phive.phar; \ chmod +x phive.phar; \

View file

@ -44,7 +44,7 @@ RUN git clone https://git.n64.cc/nosial/ncc.git;
# Main stage: Copies downloaded files and installs all # Main stage: Copies downloaded files and installs all
# #
FROM php:8.1-fpm-alpine FROM php:8.1-fpm
# Add extensions # Add extensions
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ 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 \ ctype \
common; \ common; \
# Add git and tar # Add git
apk add git tar; \ apt install -y git; \
# Install phive, phab and ncc; create workdir # Install phive, phab and ncc; create workdir
chmod +x phive.phar; \ chmod +x phive.phar; \