-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 967 Bytes
/
dagger.yml
File metadata and controls
35 lines (34 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: dagger
on:
push:
branches: [main]
jobs:
test:
name: test
runs-on: depot-ubuntu-22.04,dagger=0.20.1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test
uses: dagger/dagger-for-github@v6
with:
version: "0.20.1"
verb: call
module: github.com/kpenfound/dagger-modules/golang@v0.2.0
args: test --source=.
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}
build:
name: build
runs-on: ubuntu-latest
needs: test
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: build-container --source=. --args=. publish --address=ttl.sh/my-app-$RANDOM:2h
cloud-token: ${{ secrets.DAGGER_CLOUD_TOKEN }}