Commit fb95a2f6 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

enable caching

parent 1849da88
Pipeline #196013 failed with stage
in 7 minutes and 25 seconds
...@@ -6,14 +6,20 @@ variables: ...@@ -6,14 +6,20 @@ variables:
stages: stages:
- build - build
cache:
paths:
- installers
key: ${PETA_VERSION}
build: build:
stage: build stage: build
before_script: before_script:
- cp /global/installers/${PETA_RUN_FILE} . - mkdir -p installers
- rsync /global/installers/${PETA_RUN_FILE} installers
- 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 pull ${CI_REGISTRY_IMAGE}:${PETA_VERSION} || true - docker pull ${CI_REGISTRY_IMAGE}:${PETA_VERSION} || true
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${PETA_VERSION} --build-arg PETA_VERSION=${PETA_VERSION} --build-arg PETA_RUN_FILE=${PETA_RUN_FILE} --tag ${CI_REGISTRY_IMAGE}:latest --tag ${CI_REGISTRY_IMAGE}:${PETA_VERSION} . - docker build --cache-from ${CI_REGISTRY_IMAGE}:${PETA_VERSION} --build-arg PETA_VERSION=${PETA_VERSION} --build-arg PETA_RUN_FILE=installers/${PETA_RUN_FILE} --tag ${CI_REGISTRY_IMAGE}:latest --tag ${CI_REGISTRY_IMAGE}:${PETA_VERSION} .
- docker push ${CI_REGISTRY_IMAGE}:${PETA_VERSION} - docker push ${CI_REGISTRY_IMAGE}:${PETA_VERSION}
- docker push ${CI_REGISTRY_IMAGE}:latest - docker push ${CI_REGISTRY_IMAGE}:latest
tags: tags:
......
...@@ -20,7 +20,7 @@ RUN dpkg --add-architecture i386 && \ ...@@ -20,7 +20,7 @@ RUN dpkg --add-architecture i386 && \
gzip \ gzip \
locales sudo texinfo gzip unzip cpio chrpath autoconf lsb-release \ locales sudo texinfo gzip unzip cpio chrpath autoconf lsb-release \
libtool-bin kmod rsync bc u-boot-tools update-inetd xvfb \ libtool-bin kmod rsync bc u-boot-tools update-inetd xvfb \
libgtk2.0-0 libsdl1.2-dev libglib2.0-dev lib32z1-dev expect \ libgtk2.0-0 libsdl1.2-dev libglib2.0-dev lib32z1-dev expect gawk \
&& apt-get clean \ && apt-get clean \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
......
Supports Markdown
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