-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathkaniko.yaml
105 lines (94 loc) · 2.51 KB
/
kaniko.yaml
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
95
96
97
98
99
100
101
102
103
104
105
package:
name: kaniko
version: 1.23.2
epoch: 14
description: Build Container Images In Kubernetes
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
pipeline:
- uses: git-checkout
with:
repository: https://github.com/GoogleContainerTools/kaniko
tag: v${{package.version}}
expected-commit: 1ae9a8416c14418625de90c1115052c0a6ebee07
- uses: go/bump
with:
deps: |-
github.com/opencontainers/runc@v1.1.12
google.golang.org/grpc@v1.64.1
github.com/golang-jwt/jwt/v4@v4.5.1
github.com/go-git/go-git/v5@v5.13.0
golang.org/x/oauth2@v0.27.0
golang.org/x/crypto@v0.35.0
golang.org/x/net@v0.36.0
github.com/containerd/containerd@v1.7.27
tidy: false
- uses: go/build
with:
output: executor
packages: ./cmd/executor
ldflags: -X github.com/GoogleContainerTools/kaniko/pkg/version.Version=v${{package.version}}
subpackages:
- name: kaniko-warmer
pipeline:
- uses: go/build
with:
output: warmer
packages: ./cmd/warmer
ldflags: -X github.com/GoogleContainerTools/kaniko/pkg/version.Version=v${{package.version}}
test:
pipeline:
- runs: |
warmer --help
- name: kaniko-compat
pipeline:
- runs: |
# Symlink the binary from usr/bin to /kaniko/
mkdir -p ${{targets.subpkgdir}}/kaniko/
ln -sf /usr/bin/executor ${{targets.subpkgdir}}/kaniko/
- name: kaniko-warmer-compat
pipeline:
- runs: |
# Symlink the binary from usr/bin to /kaniko/
mkdir -p ${{targets.subpkgdir}}/kaniko/
ln -sf /usr/bin/warmer ${{targets.subpkgdir}}/kaniko/
update:
enabled: true
github:
identifier: GoogleContainerTools/kaniko
strip-prefix: v
use-tag: true
tag-filter: v
test:
environment:
contents:
packages:
- bash
- coreutils
- docker
- git
pipeline:
- name: "Verify executor binary and version"
runs: |
executor version
executor --help
- name: "Test executor basic functionality"
runs: |
# Create a simple Dockerfile
cat > Dockerfile << 'EOF'
FROM scratch
EOF
# Build a simple image
executor \
--context dir://. \
--dockerfile Dockerfile \
--no-push \
--tarPath test.tar
# Verify the tar was created
test -f test.tar