Skip to content
Snippets Groups Projects
Commit f4cfc0d1 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Release Job now should use the correct docker image.

parent f6d4267d
No related branches found
No related tags found
No related merge requests found
Pipeline #49587 failed
......@@ -16,6 +16,7 @@
stages: # List of stages for jobs, and their order of execution
- test
- build
- release
image: node:latest
......@@ -38,6 +39,7 @@ build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- npm run build
- echo "BUILD_JOB_ID=$CI_JOB_ID" >> build.env
artifacts:
paths:
- release/knowledge-space.zip
......@@ -46,6 +48,13 @@ build-job: # This job runs in the build stage, which runs first.
rules:
- if: $CI_COMMIT_TAG
release-job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
dependencies:
- build
release:
name: "Release $CI_COMMIT_TAG"
description: "Automated release for version $CI_COMMIT_TAG"
......@@ -53,7 +62,7 @@ build-job: # This job runs in the build stage, which runs first.
assets:
links:
- name: "Plugin Zip Archive"
url: https://gitlab.ibr.cs.tu-bs.de/alg/knowledge-space-wp-plugin/-/jobs/$CI_JOB_ID/artifacts/file/release/knowledge-space.zip
url: https://gitlab.ibr.cs.tu-bs.de/alg/knowledge-space-wp-plugin/-/jobs/$BUILD_JOB_ID/artifacts/file/release/knowledge-space.zip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment