sql/mysql: support extending schema with system versioning (#2913) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD - Build Docker - Cockroach - Community Edition | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
CRDB_VERSIONS: v21.2.11 v22.1.0 | |
jobs: | |
build-services: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '1.22' | |
- name: Log in to registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
- name: "build cockroach image" | |
run: | | |
VER="${{ env.CRDB_VERSIONS }}" | |
for i in $VER | |
do | |
: | |
if ! docker manifest inspect ghcr.io/ariga/cockroachdb-single-node:$i; then | |
go run internal/ci/cockroach/main.go $i > internal/ci/cockroach/Dockerfile | |
docker build -t ghcr.io/ariga/cockroachdb-single-node:$i internal/ci/cockroach/ | |
docker push ghcr.io/ariga/cockroachdb-single-node:$i | |
else | |
echo image already exists | |
fi | |
done |