...
 
Commits (3)
image: docker:latest
#image: docker:latest
services:
- docker:dind
#services:
# - docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
#before_script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build:
stage: build
......@@ -18,4 +18,17 @@ build:
- ./*.tar.xz
expire_in: 14 day
tags:
- docker
\ No newline at end of file
- docker
docker:
stage: deploy
dependencies:
- build
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker build -t $CI_REGISTRY/$CI_PROJECT_PATH:$CI_COMMIT_REF_SLUG .
- docker push $CI_REGISTRY/$CI_PROJECT_PATH
only:
- master
tags:
- docker
......@@ -3,6 +3,3 @@ FROM whynothugo/makepkg
ADD PKGBUILD /pkg
RUN echo "MAKEFLAGS=-j'$(nproc --ignore 1)'" >> ~/.makepkg.conf
RUN EXPORT_PKG=1 /bin/sh /run.sh
RUN pacman -Sy
RUN pacman -U --noconfirm *.tar.xz
\ No newline at end of file