Skip to content

Commit c9518ab

Browse files
committed
test cov: release trial with docker download, fixed
1 parent 8ec8106 commit c9518ab

1 file changed

Lines changed: 0 additions & 111 deletions

File tree

.gitlab-ci.yml

Lines changed: 0 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -319,120 +319,9 @@ RPM test install on EL9:
319319
# - apt-get update
320320
# - DEBIAN_FRONTEND=noninteractive apt install -y -f ./packages/fhs/target/dcache_*.deb
321321

322-
upload_rpm:
323-
stage: upload
324-
image: almalinux:10-minimal
325-
dependencies:
326-
- sign_rpm
327-
extends: .upload_rules
328-
script:
329-
- RPM_NAME=`ls packages/fhs/target/rpmbuild/RPMS/noarch/ | grep dcache`
330-
- VERSION=`echo $RPM_NAME | cut -d'-' -f 2 | cut -d'.' -f 1,2`
331-
- curl $PKG_UPLOAD_OPTIONS -u $PKG_UPLOAD_USER:$PKG_UPLOAD_PASS --upload-file packages/fhs/target/rpmbuild/RPMS/noarch/$RPM_NAME "$PKG_UPLOAD_URL/$VERSION/$RPM_NAME"
332-
333-
upload_deb:
334-
stage: upload
335-
image: almalinux:10-minimal
336-
dependencies:
337-
- sign_deb
338-
extends: .upload_rules
339-
script:
340-
- DEB_NAME=`ls packages/fhs/target/ | grep dcache`
341-
- VERSION=`echo $DEB_NAME | cut -d'_' -f 2 | cut -d'.' -f 1,2`
342-
- curl $PKG_UPLOAD_OPTIONS -u $PKG_UPLOAD_USER:$PKG_UPLOAD_PASS --upload-file packages/fhs/target/$DEB_NAME "$PKG_UPLOAD_URL/$VERSION/$DEB_NAME"
343-
344-
upload_tar:
345-
stage: upload
346-
image: almalinux:10-minimal
347-
dependencies:
348-
- tar
349-
extends: .upload_rules
350-
script:
351-
- TAR_NAME=`ls packages/tar/target/ | grep dcache`
352-
- VERSION=`echo $TAR_NAME | cut -d'-' -f 2 | cut -d'.' -f 1,2`
353-
- curl $PKG_UPLOAD_OPTIONS -u $PKG_UPLOAD_USER:$PKG_UPLOAD_PASS --upload-file packages/tar/target/$TAR_NAME "$PKG_UPLOAD_URL/$VERSION/$TAR_NAME"
354-
355-
356-
upload_container:
357-
stage: upload
358-
# Cache downloaded dependencies and plugins between builds.
359-
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
360-
# For latest releases see https://github.com/GoogleContainerTools/kaniko/releases
361-
# Only debug/*-debug versions of the Kaniko image are known to work within Gitlab CI
362-
image: ghcr.io/kaniko-build/dist/chainguard-dev-kaniko/executor:latest-debug
363-
dependencies:
364-
- tar
365-
extends: .upload_rules
366-
script:
367-
- |-
368-
tag=$CI_COMMIT_TAG
369-
branch_latest=`echo $CI_COMMIT_TAG | cut -d '.' -f 1,2`
370-
371-
- mkdir maven
372-
- tar -C maven --strip-components=1 -xzvf packages/tar/target/dcache-*.tar.gz
373-
- cp $CI_PROJECT_DIR/packages/tar/src/main/container/* .
374-
- mkdir -p /kaniko/.docker
375-
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"$DOCKER_HUB_USER\",\"password\":\"$DOCKER_HUB_ACCESS_KEY\"}}}" > /kaniko/.docker/config.json
376-
- >
377-
/kaniko/executor
378-
--label dcache.build=GA
379-
--context $CI_PROJECT_DIR
380-
--dockerfile $CI_PROJECT_DIR/Dockerfile
381-
--destination dcache/dcache:$tag --destination dcache/dcache:$branch_latest
382-
383-
#
384322
# This jobs needs that the number of changes to fetch from GitLab when cloning a repository is high enough to generate
385323
# the changelog.
386-
AI Generated Release Notes:
387-
image: almalinux:10-minimal
388-
stage: upload
389-
extends: .upload_rules
390-
allow_failure: true
391-
dependencies:
392-
- sign_deb
393-
- sign_rpm
394-
- tar
395-
script:
396-
- microdnf install -y git-core
397-
- git fetch --refetch --all --tags
398-
- .ci/generate-changelog.sh >> release-$CI_COMMIT_TAG.md
399-
- curl -L -o chatgpt https://github.com/kardolus/chatgpt-cli/releases/latest/download/chatgpt-linux-amd64 && chmod +x chatgpt
400-
- LAST_TAG=$(.ci/get-git-version.sh $CI_COMMIT_TAG)
401-
- |-
402-
git log --grep=maven-release-plugin --invert-grep $LAST_TAG..$CI_COMMIT_TAG | \
403-
OPENAI_API_KEY=$LLM_API_KEY \
404-
OPENAI_URL=$LLM_API_ENDPOINT \
405-
OPENAI_MODEL=$LLM_MODEL \
406-
OPENAI_COMPLETIONS_PATH=$LLM_COMPLETIONS_PATH \
407-
OPENAI_ROLE="You are a helpful tech writer working on release notes of the dCache project, ignoring commits with messages starting with '[maven-release-plugin]'." \
408-
./chatgpt "$LLM_PROMPT" | \
409-
tee -a release-$CI_COMMIT_TAG.md
410-
artifacts:
411-
paths:
412-
- release-*.md
413-
414-
415-
#
416-
# Prepare releases download table in html format
417-
#
418-
Release Notes Table:
419-
image: almalinux:10-minimal
420-
stage: upload
421-
extends: .upload_rules
422-
allow_failure: true
423-
dependencies:
424-
- sign_deb
425-
- sign_rpm
426-
- tar
427-
script:
428-
- microdnf install -y git-core
429-
- git fetch --refetch --all --tags
430-
- .ci/generate-releases-xml.sh >> release-$CI_COMMIT_TAG.xml
431324

432-
#tee -a release-$CI_COMMIT_TAG.md
433-
artifacts:
434-
paths:
435-
- release1-*.md
436325

437326
#
438327
# prepare kubernetes env for the build

0 commit comments

Comments
 (0)