Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASfpga
Petalinux Docker
Commits
fb95a2f6
Commit
fb95a2f6
authored
Oct 20, 2019
by
Steffen Vogel
🎅🏼
Browse files
enable caching
parent
1849da88
Pipeline
#196013
failed with stage
in 7 minutes and 25 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
fb95a2f6
...
...
@@ -6,14 +6,20 @@ variables:
stages
:
-
build
cache
:
paths
:
-
installers
key
:
${PETA_VERSION}
build
:
stage
:
build
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}
script
:
-
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}:latest
tags
:
...
...
Dockerfile
View file @
fb95a2f6
...
...
@@ -20,7 +20,7 @@ RUN dpkg --add-architecture i386 && \
gzip
\
locales
sudo
texinfo
gzip
unzip cpio chrpath autoconf lsb-release
\
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
\
&&
rm
-rf
/var/lib/apt/lists/
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment