.gitlab-ci.yml 1.06 KB
Newer Older
David's avatar
Argh  
David committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# build-snuffleupagus:
#   image: alpine:3.10
#   services:
#     - docker:dind
#   variables:
#     DOCKER_HOST: tcp://docker:2375
#     DOCKER_DRIVER: overlay2
#   stage: package
#   script:
#     - apk --no-cache add alpine-sdk coreutils cmake
#     - adduser -G abuild -g "Alpine Package Builder" -s /bin/ash -D builder
#     - echo "builder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
#     - mkdir /packages
#     - chown builder:abuild /packages
#     - su - builder
#     - cd /packages
#     - git clone https://github.com/nbs-system/snuffleupagus
#     - cd snuffleupagus
#     - git checkout v0.5.0
#     - abuild-keygen -a
#     - abuild -r
#   artifacts:
#     paths:
#       - 

26 27 28 29
variables:
  REGISTRY_IMAGE: registry.dark.kow.is/kowis/wordpress-container


David's avatar
David committed
30 31
build:
  image: docker:stable
David's avatar
David committed
32 33
#  services:
#    - docker:dind
David's avatar
David committed
34 35
  stage: build
  script:
36
    - docker login -u $REGISTRY_USER -p $REGISTRY_PASS registry.dark.kow.is
37
    - docker pull wordpress:php7.3-fpm
David's avatar
David committed
38
    - cd wordpress-container
39
    - docker build --tag $REGISTRY_IMAGE:latest .
40
    - docker push $REGISTRY_IMAGE:latest