Skip to content

Commit b52fb66

Browse files
blumamirblumamircursoragent
authored
DEVOPS-76: publish ruby-community images to Depot registry (#12)
Co-authored-by: blumamir <amirgiraffe@gamil.com> Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 52031a9 commit b52fb66

3 files changed

Lines changed: 28 additions & 16 deletions

File tree

‎.github/workflows/pr-policy.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ permissions:
1111
jobs:
1212
require-linear:
1313
if: ${{ !contains(github.event.pull_request.labels.*.name, 'dependencies-syncer-bot') }}
14-
runs-on: ubuntu-latest
14+
runs-on: depot-ubuntu-latest
1515
steps:
1616
- uses: odigos-io/ci-core/require-linear@main
1717

1818
release-note:
19-
runs-on: ubuntu-latest
19+
runs-on: depot-ubuntu-latest
2020
steps:
2121
- uses: odigos-io/ci-core/require-release-note@main

‎.github/workflows/release.yml‎

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,30 @@ on:
66
- 'v*'
77

88
env:
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

1114
jobs:
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"
@@ -57,7 +70,7 @@ jobs:
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
@@ -71,4 +84,3 @@ jobs:
7184
odigos
7285
odigos-enterprise
7386
vm-agent
74-

‎.github/workflows/tests.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88

99
jobs:
1010
e2e-tests:
11-
runs-on: ubuntu-latest
11+
runs-on: depot-ubuntu-latest
1212
strategy:
1313
fail-fast: false
1414
matrix:

0 commit comments

Comments
 (0)