Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions config/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: tekton.dev/v1beta1
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: apko
Expand All @@ -21,23 +20,23 @@ spec:
params:
- name: dev.mink.sources.bundle
description: A self-extracting container image of source
type: string
- name: dev.mink.images.target
description: Where to publish an image.
type: string
- name: path
description: The bundle-relative path to the config file to build.
default: .apko.yaml

type: string
results:
- name: IMAGES
description: The list of images produced by this task (for chains)
- name: dev.mink.images.digest
description: The digest of the resulting image.

steps:
- name: extract-bundle
image: $(params["dev.mink.sources.bundle"])
workingDir: /workspace

- name: build-and-push-image
image: ko://chainguard.dev/apko
workingDir: /workspace
Expand All @@ -46,7 +45,6 @@ spec:
- --image-refs=/tekton/results/IMAGES
- $(params["path"])
- $(params["dev.mink.images.target"])

# mink wants just the digest in its result, but the above produces
# a fully qualified digest.
- name: massage-digest
Expand Down