Have to use a private Image from aws or gcp for my build process in drone.
The simplest DOCKERFILE example:
FROM ***.dkr.ecr.eu-central-1.amazonaws.com/***:latest
That means i have to login, which works fine. My drone.yml example:
steps:
- name: docker
privileged: true
image: revenuehack/drone-ecr-auth
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_id
AWS_SECRET_ACCESS_KEY:
from_secret: aws_key
AWS_REGION: eu-central-1
commands:
- aws ecr get-login --region $AWS_REGION --no-include-email | sh
But now i have to pull the image and use it in different steps of the ci process. Other questions suggest binding the docker.sock like here. Does not feel right to me. Id rather have some sort of service for that. Is that possible? Also this binding does not work:
volumes:
- /var/run/docker.sock:/var/run/docker.sock)