-
-
Notifications
You must be signed in to change notification settings - Fork 37
94 lines (94 loc) · 2.7 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: dagger
"on":
- push
env:
HOF_TELEMETRY_DISABLED: "1"
HOF_FMT_VERSION: v0.6.8
jobs:
inception:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-inception-${{ github.ref_name }}
cancel-in-progress: true
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Vars
id: vars
run: |-
SHA=${GITHUB_SHA::8}
TAG=$(git tag --points-at HEAD)
echo "HOF_FMT_VERSION=${TAG}" >> $GITHUB_ENV
if [ -z $TAG ]; then
TAG=${SHA}
fi
echo "HOF_SHA=${SHA}" >> $GITHUB_ENV
echo "HOF_TAG=${TAG}" >> $GITHUB_ENV
- name: Fetch Go deps
run: go mod download
- name: Test Compatibility
run: |-
docker version
docker info
docker context ls
go run test/docker/main.go
- name: dagger-in-dagger
run: go run ./test/dagger/main/dagger-in-dagger.go
- name: dockerd-in-dagger
run: go run ./test/dagger/main/dockerd-in-dagger.go
strategy: {}
services: {}
hof:
environment: hof mod testing
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-hof-${{ github.ref_name }}
cancel-in-progress: true
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- uses: actions/cache@v4
with:
path: |-
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
~\AppData\Local\go-build
key: ${{ runner.os }}-dagger-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-dagger-
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Vars
id: vars
run: |-
SHA=${GITHUB_SHA::8}
TAG=$(git tag --points-at HEAD)
echo "HOF_FMT_VERSION=${TAG}" >> $GITHUB_ENV
if [ -z $TAG ]; then
TAG=${SHA}
fi
echo "HOF_SHA=${SHA}" >> $GITHUB_ENV
echo "HOF_TAG=${TAG}" >> $GITHUB_ENV
- name: Fetch Go deps
run: go mod download
- name: Test Compatibility
run: |-
docker version
docker info
docker context ls
go run test/docker/main.go
- name: hof-in-dagger
run: go run ./test/dagger/main/hof.go
env:
GITHUB_TOKEN: ${{secrets.HOF_HOMEBREW_PAT}}
GITLAB_TOKEN: ${{secrets.GITLAB_TOKEN}}
BITBUCKET_USERNAME: hofstadter
BITBUCKET_PASSWORD: ${{secrets.BITBUCKET_TOKEN}}
strategy: {}
services: {}