ci: use devcontainer build script in CI. Also re-tag it as 'gas' instead of 'gas/ci' (which should be redundant)
This commit is contained in:
parent
e0e6046afe
commit
13a6255553
@ -3,14 +3,14 @@ name: CI
|
|||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# These steps build the `gas/ci` docker image.
|
# These steps build the `gas` docker image.
|
||||||
# There's a tricky bootstrapping problem here. We'll try to cheat first, and if that doesn't
|
# There's a tricky bootstrapping problem here. We'll try to cheat first, and if that doesn't
|
||||||
# work, then we'll do a full bootstrapping build starting from Alpine and installing `gocheckout`
|
# work, then we'll do a full bootstrapping build starting from Alpine and installing `gocheckout`
|
||||||
# first thing.
|
# first thing.
|
||||||
build-docker:
|
build-docker:
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
container:
|
container:
|
||||||
image: gas/ci
|
image: gas
|
||||||
volumes:
|
volumes:
|
||||||
- woodpecker-gocache:/go-cache-volume
|
- woodpecker-gocache:/go-cache-volume
|
||||||
env:
|
env:
|
||||||
@ -23,7 +23,7 @@ jobs:
|
|||||||
run: gocheckout
|
run: gocheckout
|
||||||
|
|
||||||
- name: build CI container
|
- name: build CI container
|
||||||
run: docker build -t gas/ci ops/devcontainer
|
run: ops/devcontainer/build.sh
|
||||||
|
|
||||||
# Fallback: full bootstrap build. This one is quite slow.
|
# Fallback: full bootstrap build. This one is quite slow.
|
||||||
build-docker-bootstrap:
|
build-docker-bootstrap:
|
||||||
@ -51,13 +51,13 @@ jobs:
|
|||||||
run: apk add docker
|
run: apk add docker
|
||||||
|
|
||||||
- name: build CI container
|
- name: build CI container
|
||||||
run: docker build -t gas/ci ops/devcontainer
|
run: ops/devcontainer/build.sh
|
||||||
|
|
||||||
release-test:
|
release-test:
|
||||||
needs: build-docker-bootstrap
|
needs: build-docker-bootstrap
|
||||||
if: "!failure()"
|
if: "!failure()"
|
||||||
container:
|
container:
|
||||||
image: gas/ci
|
image: gas
|
||||||
volumes:
|
volumes:
|
||||||
- woodpecker-gocache:/go-cache-volume
|
- woodpecker-gocache:/go-cache-volume
|
||||||
env:
|
env:
|
||||||
|
|||||||
@ -12,10 +12,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func GenerateIDType(table schema.Table) *ast.GenDecl {
|
func GenerateIDType(table schema.Table) *ast.GenDecl {
|
||||||
// e.g., `type FoodID uint64`
|
// e.g., `type FoodID int`
|
||||||
return &ast.GenDecl{
|
return &ast.GenDecl{
|
||||||
Tok: token.TYPE,
|
Tok: token.TYPE,
|
||||||
Specs: []ast.Spec{&ast.TypeSpec{Name: ast.NewIdent(table.TypeIDName), Type: ast.NewIdent("uint64")}},
|
Specs: []ast.Spec{&ast.TypeSpec{Name: ast.NewIdent(table.TypeIDName), Type: ast.NewIdent("int")}},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user