Skip to content

Commit a55da82

Browse files
ravindrabarthwaldxcodeagentclaude
authored
ci: publish the dx Orb image to GHCR (#1)
Builds deploy/orb/Dockerfile for linux/amd64 on this public repository's Actions and publishes ghcr.io/dxcode-dev/dx-orb (tagged with the commit and latest), which Orb providers that start from a registry image use. dx-Thread-Id: https://dxcode.dev/threads/thr_6ebcef51-60c4-48a3-abf2-fc8ca33a5733 Co-authored-by: dxcodeagent <agent@dxcode.dev> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent eaa13b8 commit a55da82

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

‎.github/workflows/orb-image.yml‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Orb image
2+
3+
# Publishes the standard Orb image (deploy/orb) as a public package, so
4+
# Orb providers that start containers from a registry image (Cloudflare
5+
# Containers in a person's own account, Docker Sandboxes) can use it.
6+
# After a publish, set the digest from the job summary in
7+
# deploy/orb/public-image.json.
8+
9+
on:
10+
push:
11+
branches: [main]
12+
paths:
13+
- deploy/orb/**
14+
- apps/dxd/assets/**
15+
- .github/workflows/orb-image.yml
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
packages: write
21+
22+
concurrency:
23+
group: orb-image
24+
cancel-in-progress: false
25+
26+
jobs:
27+
publish:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: docker/setup-buildx-action@v3
32+
- uses: docker/login-action@v3
33+
with:
34+
registry: ghcr.io
35+
username: ${{ github.actor }}
36+
password: ${{ secrets.GITHUB_TOKEN }}
37+
- id: build
38+
uses: docker/build-push-action@v6
39+
with:
40+
context: .
41+
file: deploy/orb/Dockerfile
42+
platforms: linux/amd64
43+
push: true
44+
provenance: false
45+
labels: |
46+
org.opencontainers.image.source=https://github.com/${{ github.repository }}
47+
org.opencontainers.image.description=dx standard Orb image
48+
tags: |
49+
ghcr.io/${{ github.repository_owner }}/dx-orb:${{ github.sha }}
50+
ghcr.io/${{ github.repository_owner }}/dx-orb:latest
51+
- name: Record the digest
52+
env:
53+
DIGEST: ${{ steps.build.outputs.digest }}
54+
OWNER: ${{ github.repository_owner }}
55+
run: |
56+
echo "ghcr.io/${OWNER}/dx-orb@${DIGEST}" >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)