-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.05 KB
/
main.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
43
44
45
46
name: 'ci'
on:
push:
branches:
- main
tags:
- "v*"
pull_request:
types: [opened, reopened, synchronize]
jobs:
dagger:
runs-on: ubuntu-latest
services:
argocd-redis:
image: redis
ports:
- "6379:6379"
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Setup go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
-
name: Install
run: go get dagger.io/dagger@latest
-
name: Release and deploy with Dagger
run: go run ci/main.go
env:
REGISTRY_PASSWORD: '${{ secrets.REGISTRY_PASSWORD }}'
REGISTRY_USER: '${{ secrets.REGISTRY_USER }}'
GITHUB_ACCESS_TOKEN: '${{ secrets.GH_ACCESS_TOKEN }}'
REGISTRY_URL: '${{ secrets.REGISTRY_URL }}'