Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephSalisbury committed Dec 16, 2019
0 parents commit e767f17
Show file tree
Hide file tree
Showing 2,645 changed files with 1,051,044 additions and 0 deletions.
106 changes: 106 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
orbs:
architect: giantswarm/[email protected]

version: 2.1
jobs:
build:
machine: true
steps:
- checkout

- run: |
wget -q $(curl -sS https://api.github.com/repos/giantswarm/architect/releases/latest | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
chmod +x ./architect
./architect version
- run: |
date +"%Y" > /tmp/year
date +"%m" > /tmp/month
date +"%d" > /tmp/day
- restore_cache:
keys:
- go-cache-v1-{{ checksum "/tmp/year" }}-{{ checksum "/tmp/month" }}-{{ checksum "/tmp/day" }}
- go-cache-v1-{{ checksum "/tmp/year" }}-{{ checksum "/tmp/month" }}
- go-cache-v1-{{ checksum "/tmp/year" }}

- run: ./architect build

- store_test_results:
path: /tmp/results

- persist_to_workspace:
root: .
paths:
- ./template-operator

- save_cache:
key: go-cache-v1-{{ checksum "/tmp/year" }}-{{ checksum "/tmp/month" }}-{{ checksum "/tmp/day" }}
paths:
- /tmp/go/cache

workflows:
build:
jobs:
- build:
filters:
tags:
only: /^v.*/

- architect/push-to-docker:
name: push-template-operator-to-quay
image: "quay.io/giantswarm/template-operator"
username_envar: "QUAY_USERNAME"
password_envar: "QUAY_PASSWORD"
requires:
- build
# Needed to trigger job also on git tag.
filters:
tags:
only: /^v.*/

- hold-push-template-operator-to-aliyun-pr:
type: approval
requires:
- build
# Needed to prevent job from being triggered on master branch.
filters:
branches:
ignore: master

- architect/push-to-docker:
name: push-template-operator-to-aliyun-pr
image: "registry-intl.cn-shanghai.aliyuncs.com/giantswarm/template-operator"
username_envar: "ALIYUN_USERNAME"
password_envar: "ALIYUN_PASSWORD"
# Push to Aliyun should execute for non-master branches only once manually approved.
requires:
- hold-push-template-operator-to-aliyun-pr
# Needed to prevent job being triggered for master branch.
filters:
branches:
ignore: master

# Push to Aliyun should execute without manual approval on master.
- architect/push-to-docker:
name: push-template-operator-to-aliyun-master
image: "registry-intl.cn-shanghai.aliyuncs.com/giantswarm/template-operator"
username_envar: "ALIYUN_USERNAME"
password_envar: "ALIYUN_PASSWORD"
requires:
- build
# Needed to trigger job only on merge to master.
filters:
branches:
only: master

- architect/push-to-app-catalog:
name: push-template-operator-to-app-catalog
app_catalog: "control-plane-catalog"
app_catalog_test: "control-plane-test-catalog"
chart: "template-operator"
requires:
- push-template-operator-to-quay
# Needed to trigger job also on git tag.
filters:
tags:
only: /^v.*/
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.swp
TODO
template-operator
!vendor/**
36 changes: 36 additions & 0 deletions DCO
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or

(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or

(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.

(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.10

RUN apk add --no-cache ca-certificates

ADD ./template-operator /template-operator

ENTRYPOINT ["/template-operator"]
Loading

0 comments on commit e767f17

Please sign in to comment.