diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7898192..cf09174 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1 +1,36 @@ -a +name: dagger +on: + push: + branches: [main] + +jobs: + build: + name: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - + name: Call Dagger Function + uses: dagger/dagger-for-github@v6 + with: + version: "latest" + verb: call + module: github.com/kpenfound/dagger-modules/golang@v0.2.0 + args: test --source=. + # assumes the Dagger Cloud token is in + # a repository secret named DAGGER_CLOUD_TOKEN + # set via the GitHub UI/CLI + cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }} + - + name: Call Dagger Function + uses: dagger/dagger-for-github@v6 + with: + version: "latest" + verb: call + module: github.com/kpenfound/dagger-modules/golang@v0.2.0 + args: build-container --source=. --args=. publish --address=ttl.sh/my-app-$RANDOM + # assumes the Dagger Cloud token is in + # a repository secret named DAGGER_CLOUD_TOKEN + # set via the GitHub UI/CLI + cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}