-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.25 KB
/
dagger.yml
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
36
37
38
39
40
41
42
name: "Dagger"
on:
push:
branches: [ main ]
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
paths:
- 'app/**'
# Enable manual trigger for easier debugging
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onworkflow_dispatchinputs
workflow_dispatch:
jobs:
build:
name: App
runs-on: ubuntu-latest
steps:
- name: Checkout
# https://github.com/actions/checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Build
# https://github.com/dagger/dagger-for-github
uses: dagger/dagger-for-github@v3
with:
# https://github.com/dagger/dagger/releases
version: v0.2.35
cmds: |
do app
env:
DAGGER_LOG_FORMAT: plain
CIVO_API_KEY: ${{ secrets.CIVO_API_KEY }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
- name: Commit
# https://github.com/stefanzweifel/git-auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'Save new app image reference'
file_pattern: 'app/yaml/deployment.yaml'