Browse Source

Initial commit

master
Drew Short 4 years ago
commit
f1559206af
  1. 24
      Dockerfile
  2. 5
      README.md
  3. 31
      pipeline.yml
  4. 1
      tag
  5. 11
      upload_pipeline.sh

24
Dockerfile

@ -0,0 +1,24 @@
FROM golang:1.13-buster as build
ARG YTT_VERSION=master
RUN echo building ytt $YTT_VERSION \
&& git clone \
--branch "${YTT_VERSION}" \
--single-branch \
--depth 1 \
https://github.com/k14s/ytt \
./src/github.com/k14s/ytt
WORKDIR /go/src/github.com/k14s/ytt
RUN CGO_ENABLED=0 go build -o ytt ./cmd/ytt/...
FROM debian:buster-slim
LABEL maintainer="Drew Short <warrick@sothr.com>"
COPY --from=build /go/src/github.com/k14s/ytt/ytt /usr/bin/ytt
RUN apt-get -y update \
&& apt-get -y --no-install-recommends install \
bash \
bsdmainutils \
util-linux \
&& rm -Rf /var/lib/apt/lists/*
WORKDIR /project
ENTRYPOINT ["/usr/bin/ytt"]
CMD ["-h"]

5
README.md

@ -0,0 +1,5 @@
# ytt
[![Concourse](https://concourse.nulloctet.com/api/v1/teams/docker/pipelines/ytt/jobs/build-image/badge)](https://concourse.nulloctet.com/teams/docker/pipelines/ytt)
Docker image build for using ytt to work with yaml templates files

31
pipeline.yml

@ -0,0 +1,31 @@
---
resources:
- name: git-resource
type: git
icon: git
source:
uri: https://git.nulloctet.com/docker/ytt.git
ignore_paths:
- upload_pipeline.sh
- README.md
- name: git-resource-image
type: docker-image
icon: docker
source:
repository: ((nexus_docker_write.host))/sothr/ytt
username: ((nexus_docker_write.username))
password: ((nexus_docker_write.password))
jobs:
- name: build-image
plan:
- get: git-resource
trigger: true
- put: git-resource-image
params:
build: git-resource
build_args:
YTT_VERSION: v0.25.0
tag_file: git-resource/tag
tag_as_latest: true
get_params: {skip_download: true}

1
tag

@ -0,0 +1 @@
0.25.0

11
upload_pipeline.sh

@ -0,0 +1,11 @@
#!/usr/bin/env bash
TEAM=docker
PIPELINE=ytt
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
pushd "${DIR}" || true
fly -t ${TEAM} set-pipeline --pipeline ${PIPELINE} --config pipeline.yml
popd || true
Loading…
Cancel
Save