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:
Andrea Luzzardi 2022-03-09 12:07:13 -08:00
parent 64f8bd95de
commit 24d6bfd692
96 changed files with 15028 additions and 70 deletions

View file

@ -1,14 +1,21 @@
package main
import (
"alpha.dagger.io/docker"
"alpha.dagger.io/git"
"dagger.io/dagger"
"universe.dagger.io/alpine"
"universe.dagger.io/bash"
)
ctr: docker.#Build & {
source: git.#Repository & {
remote: "https://github.com/crazy-max/docker-fail2ban.git"
ref: "refs/tags/0.11.2-r3"
keepGitDir: true
dagger.#Plan & {
actions: test: {
image: alpine.#Build & {
packages: bash: {}
}
bash.#Run & {
input: image.output
script: contents: "echo Hello World!"
}
}
}