# Cannot work with both Google Artifact Registry and Google Container Repository

**URL:** <https://drone.discourse.group/t/cannot-work-with-both-google-artifact-registry-and-google-container-repository/10430>\
**Category:** Drone Support\
**Created:** [July 6, 2020, 9:39am UTC](https://drone.discourse.group/t/cannot-work-with-both-google-artifact-registry-and-google-container-repository/10430 "2020-07-06T09:39:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ademaria](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ademaria/32/4381_2.png) [@ademaria](https://drone.discourse.group/u/ademaria)\
**Post date:** [July 6, 2020, 9:39am UTC](https://drone.discourse.group/t/cannot-work-with-both-google-artifact-registry-and-google-container-repository/10430/1 "2020-07-06T09:39:36Z")

</div>

Hello,

I am migrating from GCR to the new AR (Google Artifact Repository) and I realise that there might be a bug on the current drone/gcr plugin that prevents it from working.

I have this step:

```auto
- name: smoketest-build
  image: plugins/gcr
  settings:
    registry: europe-docker.pkg.dev
    repo: europe-docker.pkg.dev/synthace/docker/smoke-test
    tags:
      - ${DRONE_COMMIT_SHA}
    dockerfile: cloudbuild/smoketest.Dockerfile
    context: antha-com/smoketest/
    cache_from: europe-docker.pkg.dev/synthace/docker/smoke-test:master
    json_key:
      from_secret: google_credentials
  volumes:
  - name: docker-gcr
    path: /var/lib/docker

```

Drone is able to fetch and push to/from both GCR and AR, as validated in other steps.

However, in this particular step it fails because the first image in the Dockerfile is fetching from `eu.gcr.io/private_repo`. So it seems as if, when using AR, you cannot then fetch images from a private GCR repository.

```auto
FROM eu.gcr.io/private-repo/conda:py3.7-alpine-glibc-forge AS build-base
LABEL vendor="synthace.com"
    
COPY requirements.txt /tmp/

```

---

<div class="post-metadata">

**Author:** ![ManveerBhullar](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/manveerbhullar/32/7544_2.png) [@ManveerBhullar](https://drone.discourse.group/u/ManveerBhullar)\
**Post date:** [April 25, 2022, 4:51pm UTC](https://drone.discourse.group/t/cannot-work-with-both-google-artifact-registry-and-google-container-repository/10430/2 "2022-04-25T16:51:30Z")

</div>

Did you ever figure this out? Im currently facing this issue, we have a private repo in GCR that gets pulled in dockerfile and we want to push to a private GAR repo.
