ci: use devcontainer build script in CI. Also re-tag it as 'gas' instead of 'gas/ci' (which should be redundant)
Some checks failed
CI / build-docker (push) Failing after 0s
CI / build-docker-bootstrap (push) Failing after 14s
CI / release-test (push) Has been skipped

This commit is contained in:
wispem-wantex 2026-01-10 13:51:26 -08:00
parent e0e6046afe
commit 13a6255553
2 changed files with 7 additions and 7 deletions

View File

@ -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:

View File

@ -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")}},
}
}