final test

This commit is contained in:
Dedy Martadinata Supriyadi 2022-02-11 18:13:11 +07:00
parent 6754430a40
commit 28ba3d3458
2 changed files with 2 additions and 6 deletions

View File

@ -35,8 +35,6 @@ build-deemix:
- zip -9 -r ${ZIP_NAME}.zip deemix-docker
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${ZIP_NAME}.zip ${PACKAGE_REGISTRY_URL}/${ZIP_NAME}.zip
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file ${ZIP_NAME}.zip ${PACKAGE_REGISTRY_URL}/${ZIP_NAME}${DATE}.zip
- echo ${PACKAGE_REGISTRY_URL}/${ZIP_NAME}.zip #This for download URL dockerfile
artifacts:
paths:
@ -51,9 +49,7 @@ create-release:
- export DATE=$(date +%Y%m%d) #Cant tag same twice use $CI_COMMIT_SHA for a while
- |
release-cli create --name "Release $DATE" --tag-name $CI_COMMIT_SHA \
--assets-link "{\"name\":\"${ZIP_NAME}.zip\",\"url\":\"${PACKAGE_REGISTRY_URL}/${ZIP_NAME}.zip\"}"\
--assets-link "{\"name\":\"${ZIP_NAME}-${DATE}.zip\",\"url\":\"${PACKAGE_REGISTRY_URL}/${ZIP_NAME}${DATE}.zip\"}"
--assets-link "{\"name\":\"${ZIP_NAME}.zip\",\"url\":\"${PACKAGE_REGISTRY_URL}/${ZIP_NAME}.zip\"}"
build-docker-image:
image: docker:19

View File

@ -25,7 +25,7 @@ RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash && \
# unzip deemix
# Need look again in project num
RUN curl -L https://gitlab.com/api/v4/projects/33610953/packages/generic//deemix-docker/deemix-docker.zip -o deemix-docker.zip && \
RUN curl -L https://gitlab.com/api/v4/projects/33610953/packages/generic/19217373/deemix-docker/deemix-docker.zip -o deemix-docker.zip && \
unzip deemix-docker
COPY root/ /