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 @@ ...@@ -16,6 +16,7 @@
stages: # List of stages for jobs, and their order of execution stages: # List of stages for jobs, and their order of execution
- test - test
- build - build
- release
image: node:latest image: node:latest
...@@ -38,6 +39,7 @@ build-job: # This job runs in the build stage, which runs first. ...@@ -38,6 +39,7 @@ build-job: # This job runs in the build stage, which runs first.
stage: build stage: build
script: script:
- npm run build - npm run build
- echo "BUILD_JOB_ID=$CI_JOB_ID" >> build.env
artifacts: artifacts:
paths: paths:
- release/knowledge-space.zip - release/knowledge-space.zip
...@@ -46,6 +48,13 @@ build-job: # This job runs in the build stage, which runs first. ...@@ -46,6 +48,13 @@ build-job: # This job runs in the build stage, which runs first.
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
release-job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
dependencies:
- build
release: release:
name: "Release $CI_COMMIT_TAG" name: "Release $CI_COMMIT_TAG"
description: "Automated release for version $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. ...@@ -53,7 +62,7 @@ build-job: # This job runs in the build stage, which runs first.
assets: assets:
links: links:
- name: "Plugin Zip Archive" - 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