init commit for coverting to podman

This commit is contained in:
zerodoctor
2023-10-04 23:19:30 -05:00
parent 7e9969423c
commit 04332e5527
96 changed files with 2034 additions and 534 deletions

View File

@@ -32,7 +32,7 @@ func TestParse(t *testing.T) {
},
&Pipeline{
Kind: "pipeline",
Type: "docker",
Type: "podman",
Name: "default",
Version: "1",
Environment: map[string]string{
@@ -48,8 +48,8 @@ func TestParse(t *testing.T) {
Clone: manifest.Clone{
Depth: 50,
},
Deps: []string{"dependency"},
PullSecrets: []string{"dockerconfigjson"},
Deps: []string{"dependency"},
PullSecrets: []string{"podmanconfigjson"},
Trigger: manifest.Conditions{
Branch: manifest.Condition{
Include: []string{"master"},
@@ -130,7 +130,7 @@ func TestParseNoMatch(t *testing.T) {
func TestMatch(t *testing.T) {
r := &manifest.RawResource{
Kind: "pipeline",
Type: "docker",
Type: "podman",
}
if match(r) == false {
t.Errorf("Expect match, got false")
@@ -138,7 +138,7 @@ func TestMatch(t *testing.T) {
r = &manifest.RawResource{
Kind: "approval",
Type: "docker",
Type: "podman",
}
if match(r) == true {
t.Errorf("Expect kind mismatch, got true")

View File

@@ -16,7 +16,7 @@ var (
// Defines the Resource Kind and Type.
const (
Kind = "pipeline"
Type = "docker"
Type = "podman"
)
// Pipeline is a pipeline resource that executes pipelines

View File

@@ -39,7 +39,7 @@ func TestGetters(t *testing.T) {
pipeline := &Pipeline{
Version: "1.0.0",
Kind: "pipeline",
Type: "docker",
Type: "podman",
Name: "default",
Deps: []string{"before"},
Platform: platform,

View File

@@ -1,6 +1,6 @@
---
kind: pipeline
type: docker
type: podman
server:
image: docker-18-04
@@ -12,4 +12,4 @@ steps:
- go build
- go test
...
...

View File

@@ -1,8 +1,8 @@
---
kind: pipeline
type: docker
type: podman
steps:
foo: bar
...
...

View File

@@ -10,7 +10,7 @@ data: f0e4c2f76c58916ec25
---
kind: pipeline
type: docker
type: podman
name: default
version: 1
@@ -54,7 +54,7 @@ services:
command: [ "--debug" ]
image_pull_secrets:
- dockerconfigjson
- podmanconfigjson
trigger:
branch: [ master ]

View File

@@ -1,9 +1,9 @@
---
kind: pipeline
type: docker
type: podman
name: test
steps:
- ~
...
...

View File

@@ -1,5 +1,5 @@
---
kind: pipeline
type: docker
type: podman
...
...