Use crane to copy test docker images (#4197)

This commit is contained in:
Anuraag Agrawal 2022-02-24 09:07:40 +09:00 committed by GitHub
parent 730b2a5be3
commit f4be86124a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -26,8 +26,8 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull and push
- name: Copy image
# Non-debug image doesn't seem to support reading the .docker creds.
run: |
docker pull ${{ matrix.source }}
docker tag ${{ matrix.source }} ghcr.io/open-telemetry/opentelemetry-java/${{ matrix.target_image }}
docker push ghcr.io/open-telemetry/opentelemetry-java/${{ matrix.target_image }}
docker run --rm -v $HOME/.docker:/root/.docker gcr.io/go-containerregistry/crane:debug \
cp ${{ matrix.source }} ghcr.io/open-telemetry/opentelemetry-java/${{ matrix.target_image }}