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]
|
||||
|
||||
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
|
||||
# work, then we'll do a full bootstrapping build starting from Alpine and installing `gocheckout`
|
||||
# first thing.
|
||||
build-docker:
|
||||
continue-on-error: true
|
||||
container:
|
||||
image: gas/ci
|
||||
image: gas
|
||||
volumes:
|
||||
- woodpecker-gocache:/go-cache-volume
|
||||
env:
|
||||
@ -23,7 +23,7 @@ jobs:
|
||||
run: gocheckout
|
||||
|
||||
- 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.
|
||||
build-docker-bootstrap:
|
||||
@ -51,13 +51,13 @@ jobs:
|
||||
run: apk add docker
|
||||
|
||||
- name: build CI container
|
||||
run: docker build -t gas/ci ops/devcontainer
|
||||
run: ops/devcontainer/build.sh
|
||||
|
||||
release-test:
|
||||
needs: build-docker-bootstrap
|
||||
if: "!failure()"
|
||||
container:
|
||||
image: gas/ci
|
||||
image: gas
|
||||
volumes:
|
||||
- woodpecker-gocache:/go-cache-volume
|
||||
env:
|
||||
|
||||
@ -12,10 +12,10 @@ import (
|
||||
)
|
||||
|
||||
func GenerateIDType(table schema.Table) *ast.GenDecl {
|
||||
// e.g., `type FoodID uint64`
|
||||
// e.g., `type FoodID int`
|
||||
return &ast.GenDecl{
|
||||
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