(CI/CD) Use intellij-idea-pkg-image Docker base image

This commit is contained in:
Marcel Kapfer 2023-07-27 18:10:19 +02:00
parent 9611dde0f7
commit e9e9cc98b6
1 changed files with 2 additions and 10 deletions

View File

@ -1,10 +1,9 @@
default: default:
image: ubuntu:lunar image: registry.gitlab.com/mmk2410/intellij-idea-pkg-image:lunar
variables: variables:
PACKAGE: "intellij-idea-community" PACKAGE: "intellij-idea-community"
TZ: UTC TZ: UTC
DEBIAN_FRONTEND: noninteractive
NAME: "Marcel Kapfer" NAME: "Marcel Kapfer"
EMAIL: "opensource@mmk2410.org" EMAIL: "opensource@mmk2410.org"
@ -16,11 +15,6 @@ stages:
update-job: update-job:
stage: autoupdate stage: autoupdate
script: script:
##
## Install necessary packages.
##
- apt update && apt install -y git devscripts debhelper libxml2-utils openssh-client
## ##
## Configure SSH key ## Configure SSH key
## ##
@ -49,7 +43,6 @@ update-job:
build-job: build-job:
stage: build stage: build
script: script:
- apt update && apt install -y git devscripts debhelper
- export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2) - export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2)
- cd "$PACKAGE"_"$VERSION" || exit - cd "$PACKAGE"_"$VERSION" || exit
- debuild -us -uc - debuild -us -uc
@ -62,10 +55,9 @@ build-job:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
deploy-job: deploy-job:
image: ubuntu:$UBUNTU_VERSION image: registry.gitlab.com/mmk2410/intellij-idea-pkg-image:$UBUNTU_VERSION
stage: deploy stage: deploy
script: script:
- apt update && apt install -y git devscripts debhelper gnupg
- export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2) - export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2)
- echo "$GPG_PRIVATE_KEY" | tr -d '\r' | gpg --import - - echo "$GPG_PRIVATE_KEY" | tr -d '\r' | gpg --import -
- echo "$GPG_PUBLIC_KEY" | tr -d '\r' | gpg --import - - echo "$GPG_PUBLIC_KEY" | tr -d '\r' | gpg --import -