-
Notifications
You must be signed in to change notification settings - Fork 870
40 lines (36 loc) · 1.16 KB
/
docker-test-containers-daily.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Copy test container docker images (daily)
on:
schedule:
- cron: "23 3 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
copy-images:
permissions:
contents: read
packages: write
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 }}