Commit dfd3cc34 authored by Ochorocho's avatar Ochorocho
Browse files

Update .gitlab-ci.yml

parent 1ed27ad4
Pipeline #6805 failed
......@@ -5,6 +5,8 @@ include:
variables:
SAST_GOSEC_LEVEL: 2
PHAR_FILE_NAME: "typo3-composer-installer.phar"
PHAR_ARTIFACT_NAME: "typo3-composer-installer"
stages:
- build
......@@ -20,6 +22,11 @@ stages:
script:
- composer install
- php -d phar.readonly=off ./vendor/bin/phar-composer -vvv build
- echo 'JOB_ARTIFACT_ID=$CI_JOB_ID' > build.env
artifacts:
report:
dotenv: build.env
build_assets:
image: renovate/yarn:1.22
......@@ -36,9 +43,9 @@ create_branch_phar:
- master
- /release/
artifacts:
name: "typo3-composer-installer"
name: $PHAR_ARTIFACT_NAME
paths:
- typo3-composer-installer.phar
- $PHAR_FILE_NAME
expire_in: 1 day
<<: *phar
......@@ -46,9 +53,9 @@ create_version_phar:
only:
- tags
artifacts:
name: "typo3-composer-installer"
name: $PHAR_ARTIFACT_NAME
paths:
- typo3-composer-installer.phar
- $PHAR_FILE_NAME
expire_in: 1000 year
<<: *phar
......@@ -60,6 +67,7 @@ release_upload:
dependencies:
- create_version_phar
script:
- echo "$CI_SERVER_URL/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/jobs/artifacts/$CI_COMMIT_REF_NAME/download"
- echo "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG/assets/links?job_token=$CI_JOB_TOKEN"
- 'curl --request POST --data name="awesome-v0.2gzgz.dmgadsad.jpg" --data url="https://gitlab.knallimall.org/ochorocho/typo3-composer-installer/-/jobs/artifacts/v.2.2.10/download" https://gitlab.knallimall.org/api/v4/projects/56/releases/v.2.2.10/assets/links?job_token=$CI_JOB_TOKEN'
#- echo "$CI_SERVER_URL/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/-/jobs/artifacts/$CI_COMMIT_REF_NAME/download"
#- echo "$CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG/assets/links?job_token=$CI_JOB_TOKEN"
# /projects/:id/jobs/:job_id/artifacts/
- 'curl --request POST --data name="$PHAR_FILE_NAME $CI_COMMIT_TAG $JOB_ARTIFACT_ID" --data url="$CI_SERVER_URL/projects/$CI_PROJECT_ID/jobs/$JOB_ARTIFACT_ID/artifacts/$PHAR_FILE_NAME" $CI_SERVER_URL/api/v4/projects/$CI_PROJECT_ID/releases/$CI_COMMIT_TAG/assets/links?job_token=$CI_JOB_TOKEN'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment