Skip to content

Commit fea2eee

Browse files
committed
move docker image to sg org
1 parent d4d20af commit fea2eee

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build and publish container
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: read
9+
packages: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: docker/setup-buildx-action@v3
18+
19+
- name: Log in to GHCR
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ github.actor }}
24+
password: ${{ secrets.GITHUB_TOKEN }}
25+
26+
- name: Docker metadata
27+
id: meta
28+
uses: docker/metadata-action@v5
29+
with:
30+
images: ghcr.io/${{ github.repository }}
31+
tags: |
32+
# Use the release tag (e.g., v1.2.3)
33+
type=semver,pattern={{version}}
34+
type=semver,pattern={{major}}.{{minor}}
35+
type=semver,pattern={{major}}
36+
labels: |
37+
org.opencontainers.image.title=Amp Code Review Agent
38+
org.opencontainers.image.description=Code review for GitHub powered by Amp
39+
org.opencontainers.image.source=https://github.com/${{ github.repository }}
40+
org.opencontainers.image.licenses=MIT
41+
42+
- name: Build and push
43+
uses: docker/build-push-action@v6
44+
with:
45+
context: .
46+
file: ./Dockerfile
47+
platforms: linux/amd64
48+
push: true
49+
tags: ${{ steps.meta.outputs.tags }}
50+
labels: ${{ steps.meta.outputs.labels }}
51+
cache-from: type=gha
52+
cache-to: type=gha,mode=max

.github/workflows/review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
steps:
2222
- name: Run Amp Code Review
23-
uses: docker://ghcr.io/sayansisodiya/cra-github:latest
23+
uses: docker://ghcr.io/sourcegraph/cra-github:latest
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
AMP_SERVER_URL: ${{ vars.AMP_SERVER_URL }}

0 commit comments

Comments
 (0)