Commit 5c9dfaff authored by Baudouin Feildel's avatar Baudouin Feildel
Browse files

Remove docker image build from repository

parent 94ae2355
Pipeline #445 failed with stages
in 6 minutes and 2 seconds
image: archlinux/base:latest
image: amdg2/archlinux-base-devel:latest
stages:
- docker
- fetch current
- build packages
- build repository
......@@ -9,7 +8,6 @@ stages:
.build-package-template:
stage: build packages
image: amdg2/archlinux-base-devel:latest
artifacts:
paths:
- packages
......@@ -25,23 +23,8 @@ stages:
- executor:docker
allow_failure: true
docker-build-and-push:
stage: docker
image: docker:stable
services:
- docker:dind
before_script:
- docker login -u "${DOCKER_LOGIN}" -p "${DOCKER_PASSWORD}"
script:
- ./build-docker.sh "${USE_CACHE}"
after_script:
- docker logout
tags:
- docker-build
fetch-current:
stage: fetch current
image: amdg2/archlinux-base-devel:latest
artifacts:
paths:
- current-repo
......@@ -138,7 +121,6 @@ build:rspamd:
generate-repository-database:
stage: build repository
image: amdg2/archlinux-base-devel:latest
artifacts:
paths:
- packages
......@@ -150,7 +132,6 @@ generate-repository-database:
deploy:
stage: deploy
image: amdg2/archlinux-base-devel:latest
before_script:
- mkdir -p ~/.ssh && touch ~/.ssh/known_hosts
- eval $(ssh-agent -s)
......
FROM archlinux/base:latest
MAINTAINER Baudouin Feildel <baudouin@feildel.fr>
# Make sure pacman keyring is initialized
RUN pacman-key --init
# Synchronize database and upgrade packages
RUN pacman -Syu --noconfirm
# Install common build dependencies and tools that will be needed by build script
RUN pacman -S --noconfirm base-devel grep tar sudo openssh git go php cunit nodejs npm python python2 cmake jq clang llvm
# Clean uneeded pacman cache (can fail it is not a mandatory step)
RUN yes | pacman -Scc || true
CMD ["/usr/bin/bash"]
\ No newline at end of file
#!/bin/bash
USE_CACHE=${1:-yes}
DOCKER_IMAGE_NAME=${DOCKER_IMAGE_NAME:-amdg2/archlinux-base-devel}
if [[ "$USE_CACHE" == "yes" ]]
then
docker pull "${DOCKER_IMAGE_NAME}"
docker build --cache-from "${DOCKER_IMAGE_NAME}" -t "${DOCKER_IMAGE_NAME}" .
else
docker build -t "${DOCKER_IMAGE_NAME}" .
fi
docker push amdg2/archlinux-base-devel
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment