I have a .gitlab-ci.yml file. Its creating some docker images and pushing it to AWS ECR.
When I am running curl command to push some artifacts to remote repository it says curl: not found. I am already using openjdk image to do ./gradlew build. Don't know how to install curl on Gitlab runner.
Please guide.
If you're using docker:dind
, you can do the following as @Abhinav Mutreja mentioned.
image: docker:stable
services:
- name: docker:dind
stages:
- example
example:
stage: example
before_script:
- apk add --update curl && rm -rf /var/cache/apk/*
script:
- >
curl google.com
I was able to resolve it by using apk utility.
apk add --update curl && rm -rf /var/cache/apk/*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With