Use pre-made image for build container

This commit is contained in:
Romain Vigier
2021-01-05 12:49:05 +01:00
parent f2498c0017
commit f44300525c
+1 -7
View File
@@ -35,17 +35,11 @@ test:
build:
stage: build
image: fedora:latest
image: registry.gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension:latest
rules:
- if: $CI_COMMIT_TAG
- if: $CI_PIPELINE_SOURCE == "web"
cache:
paths:
- .dnf_cache
script:
- mkdir -p .dnf_cache
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True update -y
- dnf --setopt=cachedir=$(pwd)/.dnf_cache --setopt=keepcache=True install -y make gnome-shell gettext findutils
- make build
artifacts:
name: "$CI_COMMIT_REF_NAME"