66 - ' v*'
77
88env :
9- ECR_REPO : public.ecr.aws/odigos/agents/ruby-community
9+ DOCKER_REPOSITORY_NAME : ruby-community
10+ DEPOT_REPOSITORY_NAME : ' agents/ruby-community'
11+ ECR_REGISTRY : public.ecr.aws/odigos/agents
12+ DEPOT_REGISTRY : p0xd21zf5r.registry.depot.dev
1013
1114jobs :
1215 release :
13- runs-on : ubuntu-latest
16+ runs-on : depot- ubuntu-24.04-4
1417 permissions :
1518 contents : read
1619 id-token : write
17-
20+
1821 steps :
1922 - name : Checkout code
20- uses : actions/checkout@v6
23+ uses : actions/checkout@v7
2124
2225 - name : Set up Docker Buildx
23- uses : docker/setup-buildx-action@v3
24-
26+ uses : docker/setup-buildx-action@v4
27+
2528 - name : Set up QEMU
26- uses : docker/setup-qemu-action@v3
29+ uses : docker/setup-qemu-action@v4
2730
2831 - name : Configure AWS credentials
29- uses : aws-actions/configure-aws-credentials@v4
32+ uses : aws-actions/configure-aws-credentials@v6
3033 with :
3134 role-to-assume : arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-ecr-upload
3235 aws-region : ' us-east-1'
@@ -36,19 +39,29 @@ jobs:
3639 aws ecr-public get-login-password --region us-east-1 \
3740 | docker login --username AWS --password-stdin public.ecr.aws
3841
42+ - name : Login to Depot Registry
43+ run : echo "${{ secrets.DEPOT_DEV_AGENT_PUBLISH_TOKEN }}" | docker login ${DEPOT_REGISTRY} -u x-token --password-stdin
44+
45+ - name : Compute Docker tags
46+ id : docker-tags
47+ env :
48+ TAG : ${{ github.ref_name }}
49+ run : |
50+ echo "tags=${ECR_REGISTRY}/${DOCKER_REPOSITORY_NAME}:${TAG},${DEPOT_REGISTRY}/${DEPOT_REPOSITORY_NAME}:${TAG},${ECR_REGISTRY}/${DOCKER_REPOSITORY_NAME}:latest,${DEPOT_REGISTRY}/${DEPOT_REPOSITORY_NAME}:latest" >> "$GITHUB_OUTPUT"
51+
3952 - name : Build and push Docker image
40- uses : docker/build-push-action@v6
53+ uses : docker/build-push-action@v7
4154 with :
4255 context : .
4356 platforms : linux/amd64,linux/arm64
4457 file : release.Dockerfile
4558 push : true
4659 build-args : AGENT_VERSION=${{ github.ref_name }}
47- tags : ${{ env.ECR_REPO }}:${{ github.ref_name }},${{ env.ECR_REPO }}:latest
60+ tags : ${{ steps.docker-tags.outputs.tags }}
4861
4962 - name : Notify Slack
5063 uses : odigos-io/ci-core/.github/actions/slack-release-notification@main
51- with :
64+ with :
5265 webhook-url : ${{ secrets.ODIGOS_RELEASE_STATUS_WEBHOOK_URL }}
5366 success-description : " Published a new release of OpenTelemetry Ruby Community Agent"
5467 failure-description : " ERROR: Failed to publish a new release of OpenTelemetry Ruby Community Agent"
5770 # Trigger Odigos version update (OSS, Enterprise, VM Agent)
5871 trigger-odigos-update :
5972 needs : release
60- runs-on : ubuntu-latest
73+ runs-on : depot- ubuntu-latest
6174 permissions :
6275 id-token : write
6376 contents : read
7184 odigos
7285 odigos-enterprise
7386 vm-agent
74-
0 commit comments