diff --git a/.webhook_bridge/pipeline-build-semver.yaml b/.webhook_bridge/pipeline-build-semver.yaml index b94dee7..7d177f9 100644 --- a/.webhook_bridge/pipeline-build-semver.yaml +++ b/.webhook_bridge/pipeline-build-semver.yaml @@ -14,6 +14,9 @@ spec: - name: image-name description: The name for the built image type: string + - name: target-name + description: The dockerfile target to build + type: string - name: path-to-image-context description: The path to the build context type: string @@ -122,6 +125,7 @@ spec: - name: EXTRA_ARGS value: - "--destination=$(params.image-name)" # Also write the :latest image + - "--target=$(params.target-name)" - --cache=true - --cache-copy-layers - --cache-repo=harbor.fizz.buzz/kanikocache/cache @@ -216,6 +220,8 @@ spec: params: - name: image-name value: "harbor.fizz.buzz/private/webhook-bridge" + - name: target-name + value: "" - name: path-to-image-context value: . - name: path-to-dockerfile diff --git a/.webhook_bridge/pipeline-format.yaml b/.webhook_bridge/pipeline-format.yaml index 97b8b58..190ee4d 100644 --- a/.webhook_bridge/pipeline-format.yaml +++ b/.webhook_bridge/pipeline-format.yaml @@ -14,6 +14,9 @@ spec: - name: image-name description: The name for the built image type: string + - name: target-name + description: The dockerfile target to build + type: string - name: path-to-image-context description: The path to the build context type: string @@ -89,6 +92,7 @@ spec: value: "gcr.io/kaniko-project/executor:v1.12.1" - name: EXTRA_ARGS value: + - "--target=$(params.target-name)" - --cache=true - --cache-copy-layers - --cache-repo=harbor.fizz.buzz/kanikocache/cache @@ -292,7 +296,9 @@ spec: secretName: harbor-plain params: - name: image-name - value: "harbor.fizz.buzz/private/webhook-bridge-development" + value: "harbor.fizz.buzz/private/webhook-bridge-development-format" + - name: target-name + value: "" - name: path-to-image-context value: docker/webhook_bridge_development/ - name: path-to-dockerfile diff --git a/.webhook_bridge/pipeline-rust-clippy.yaml b/.webhook_bridge/pipeline-rust-clippy.yaml index 116c573..153b720 100644 --- a/.webhook_bridge/pipeline-rust-clippy.yaml +++ b/.webhook_bridge/pipeline-rust-clippy.yaml @@ -14,6 +14,9 @@ spec: - name: image-name description: The name for the built image type: string + - name: target-name + description: The dockerfile target to build + type: string - name: path-to-image-context description: The path to the build context type: string @@ -89,6 +92,7 @@ spec: value: "gcr.io/kaniko-project/executor:v1.12.1" - name: EXTRA_ARGS value: + - "--target=$(params.target-name)" - --cache=true - --cache-copy-layers - --cache-repo=harbor.fizz.buzz/kanikocache/cache @@ -271,7 +275,9 @@ spec: secretName: harbor-plain params: - name: image-name - value: "harbor.fizz.buzz/private/webhook-bridge-development" + value: "harbor.fizz.buzz/private/webhook-bridge-development-clippy" + - name: target-name + value: "" - name: path-to-image-context value: docker/webhook_bridge_development/ - name: path-to-dockerfile diff --git a/.webhook_bridge/pipeline-rust-test.yaml b/.webhook_bridge/pipeline-rust-test.yaml index 3345feb..a48a4fb 100644 --- a/.webhook_bridge/pipeline-rust-test.yaml +++ b/.webhook_bridge/pipeline-rust-test.yaml @@ -14,6 +14,9 @@ spec: - name: image-name description: The name for the built image type: string + - name: target-name + description: The dockerfile target to build + type: string - name: path-to-image-context description: The path to the build context type: string @@ -89,6 +92,7 @@ spec: value: "gcr.io/kaniko-project/executor:v1.12.1" - name: EXTRA_ARGS value: + - "--target=$(params.target-name)" - --cache=true - --cache-copy-layers - --cache-repo=harbor.fizz.buzz/kanikocache/cache @@ -261,7 +265,9 @@ spec: secretName: harbor-plain params: - name: image-name - value: "harbor.fizz.buzz/private/webhook-bridge-development" + value: "harbor.fizz.buzz/private/webhook-bridge-development-test" + - name: target-name + value: "" - name: path-to-image-context value: docker/webhook_bridge_development/ - name: path-to-dockerfile