mirror of
https://github.com/dagger/dagger-for-github.git
synced 2026-01-08 15:09:53 +11:00
update action to dagger 0.2
- Remove AGE key setup - Update README to use `dagger do` - Update tests to dagger 0.2 Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
64f8bd95de
commit
24d6bfd692
96 changed files with 15028 additions and 70 deletions
26
test/cue.mod/pkg/universe.dagger.io/nginx/nginx.cue
vendored
Executable file
26
test/cue.mod/pkg/universe.dagger.io/nginx/nginx.cue
vendored
Executable file
|
|
@ -0,0 +1,26 @@
|
|||
// Run and deploy the Nginx web server
|
||||
// https://nginx.org
|
||||
package nginx
|
||||
|
||||
import (
|
||||
"universe.dagger.io/docker"
|
||||
)
|
||||
|
||||
// Build a nginx container image
|
||||
// FIXME: bootstrapping by wrapping "docker pull nginx"
|
||||
// Possible ways to improve:
|
||||
// 1. "docker build" the docker hub image ourselves: https://github.com/nginxinc/docker-nginx
|
||||
// 2. Reimplement same docker build in pure Cue (no more Dockerfile)
|
||||
// FIXME: build from source or package distro, instead of docker pull
|
||||
#Build: {
|
||||
output: docker.#Image & _pull.image
|
||||
|
||||
_pull: docker.#Pull
|
||||
*{
|
||||
flavor: "alpine"
|
||||
_pull: source: "index.docker.io/nginx:stable-alpine"
|
||||
} | {
|
||||
flavor: "debian"
|
||||
_pull: source: "index.docker.io/nginx:stable"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue