Skip to content

Commit f2ea959

Browse files
author
Sam Kottler
authored
Merge pull request mysql#5 from planetscale/docs-and-build-fixes
Docs and build fixes
2 parents 8d9f347 + 7954bad commit f2ea959

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ steps:
2121

2222
- wait
2323

24-
- name: "Build runtime mysql-server container"
25-
label: ":docker: Build runtime container"
24+
- name: "Build runtime mysql-server container for branch"
25+
label: ":docker: Build runtime branch container"
2626
command: "/usr/bin/mysqld -V"
27+
branches: "!${MAIN_BRANCH}"
2728
plugins:
2829
- ecr#v2.3.0:
2930
login: true
@@ -33,3 +34,17 @@ steps:
3334
run: release
3435
push:
3536
- "release:${REGISTRY}/branch/${IMAGE_NAME}:${BUILDKITE_BRANCH}-latest"
37+
38+
- name: "Build runtime mysql-server container for main"
39+
label: ":docker: Build runtime main container"
40+
command: "/usr/bin/mysqld -V"
41+
branches: "${MAIN_BRANCH}"
42+
plugins:
43+
- ecr#v2.3.0:
44+
login: true
45+
- artifacts#v1.5.0:
46+
download: "dist/mysql-*.tar.gz"
47+
- docker-compose#v3.9.0:
48+
run: release
49+
push:
50+
- "release:${REGISTRY}/main/${IMAGE_NAME}:${BUILDKITE_BRANCH}-latest"

_planetscale/docs/registry.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Container registry for mysql-server
2+
3+
4+
## Using ECR
5+
6+
### List images
7+
8+
To retrieve details of an image built against a branch:
9+
10+
```
11+
aws ecr describe-images --profile build-ops --repository-name 'branch/mysql-server' --image-ids imageTag=8.0-latest | jq -r '.imageDetails[]'
12+
```

0 commit comments

Comments
 (0)