Skip to content
Snippets Groups Projects
Commit e817d251 authored by Yana Kernerman's avatar Yana Kernerman Committed by Yana Kernerman
Browse files

trigger pipeline

parent c76fc237
No related branches found
No related tags found
1 merge request!26Tut01
......@@ -48,20 +48,8 @@ job_build_and_publish_image:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY" # Log in to the container registry
script:
- echo "Publishing artifact..."
- ls -al # List files to confirm artifact.bin exists
- pwd # Print the current directory
- echo "${CI_JOB_TOKEN}"
- echo " ${CI_API_V4_URL}"
- echo "${CI_PROJECT_ID}"
- echo "${CI_COMMIT_REF_NAME}"
- echo "${version}"
- curl --version # Verify curl installation
- |
curl \
--header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
--upload-file ./artifact.bin \
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/1.0.0/webservice"
- docker build -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- ls -al
- docker build -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
after_script:
- docker rmi "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" # Clean up the image to free up space
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