Copy test container docker images (daily) #971
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Copy test container docker images (daily) | |
on: | |
schedule: | |
- cron: "23 3 * * *" | |
workflow_dispatch: | |
jobs: | |
copy-images: | |
strategy: | |
matrix: | |
include: | |
- source: jaegertracing/all-in-one:1.32 | |
target_image: jaeger:1.32 | |
- source: otel/opentelemetry-collector-contrib:latest | |
target_image: otel-collector | |
- source: shopify/toxiproxy:latest | |
target_image: toxiproxy | |
- source: eclipse-temurin:17-jre-focal | |
target_image: openjdk17 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Docker login | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Copy image | |
# Non-debug image doesn't seem to support reading the .docker creds. | |
run: | | |
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 }} |