devenv: comments, pin alpine to digest
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
parent
3f514e0fa7
commit
355505d0aa
8
.dagger/env/dev/main.cue
vendored
8
.dagger/env/dev/main.cue
vendored
@ -11,7 +11,9 @@ import (
|
|||||||
// Dagger source code
|
// Dagger source code
|
||||||
source: dagger.#Artifact
|
source: dagger.#Artifact
|
||||||
|
|
||||||
|
|
||||||
test: {
|
test: {
|
||||||
|
// Go unit tests
|
||||||
unit: {
|
unit: {
|
||||||
logs: (io.#File & {
|
logs: (io.#File & {
|
||||||
from: build.ctr
|
from: build.ctr
|
||||||
@ -19,6 +21,8 @@ test: {
|
|||||||
read: format: "string"
|
read: format: "string"
|
||||||
}).read.data
|
}).read.data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Full suite of bats integration tests
|
||||||
integration: {
|
integration: {
|
||||||
// FIXME
|
// FIXME
|
||||||
}
|
}
|
||||||
@ -28,7 +32,9 @@ test: {
|
|||||||
build: {
|
build: {
|
||||||
ctr: docker.#Container & {
|
ctr: docker.#Container & {
|
||||||
image: docker.#ImageFromRegistry & {
|
image: docker.#ImageFromRegistry & {
|
||||||
ref: "docker.io/golang:1.16-alpine"
|
ref: "docker.io/golang:1.16-alpine@\(digest)"
|
||||||
|
// FIXME: this digest is arch-specific (amd64)
|
||||||
|
let digest="sha256:6600d9933c681cb38c13c2218b474050e6a9a288ac62bdb23aee13bc6dedce18"
|
||||||
}
|
}
|
||||||
|
|
||||||
setup: [
|
setup: [
|
||||||
|
Reference in New Issue
Block a user