Skip to content

Commit

Permalink
Merge pull request #1 from vbehar/helm3
Browse files Browse the repository at this point in the history
helm 3
  • Loading branch information
vbehar authored May 4, 2020
2 parents 695dac2 + 3807c7c commit e9d79fc
Show file tree
Hide file tree
Showing 1,709 changed files with 805,774 additions and 677 deletions.
73 changes: 0 additions & 73 deletions .circleci/config.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/actions/autotag/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ARG autotag_version=v1
FROM quay.io/pantheon-public/autotag:${autotag_version}

LABEL "com.github.actions.name"="autotag"
LABEL "com.github.actions.description"="Wraps https://github.com/pantheon-systems/autotag as a GitHub action"
LABEL "com.github.actions.icon"="tag"
LABEL "com.github.actions.color"="blue"

COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
3 changes: 3 additions & 0 deletions .github/actions/autotag/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Autotag GitHub Action

This [GitHub Action](https://help.github.com/en/actions) wraps the [autotag](https://github.com/pantheon-systems/autotag) tool, to automatically find the next semver tag, and create it.
6 changes: 6 additions & 0 deletions .github/actions/autotag/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -eu

cd "$GITHUB_WORKSPACE"

/autotag "$@"
36 changes: 36 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# GitHub Actions Workflow definition for validating Pull Requests

name: pr-validation

on: [pull_request]

jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow

- name: Setup Go
uses: actions/setup-go@v2-beta
with:
go-version: '1.14'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
args: release --snapshot --skip-publish --rm-dist

unit-tests:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2

- name: Setup Go
uses: actions/setup-go@v2-beta
with:
go-version: '1.14'
- name: Run Unit Tests
run: go test -v ./...
env:
GOFLAGS: -mod=vendor
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# GitHub Actions Workflow definition to automatically create a new release for each new Git tag

name: release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow

- name: Setup Go
uses: actions/setup-go@v2-beta
with:
go-version: '1.14'

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25 changes: 25 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# GitHub Actions Workflow definition to automatically create a new Git tag on each push to master

name: tag

on:
push:
branches:
- master

jobs:
tag:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: Tag
uses: ./.github/actions/autotag/
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_TOKEN }}
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
_scratch
tpl
vendor/
_dist/

untt
untt.exe
dist/
bin/
helm3-unittest
_dist

.DS_Store
17 changes: 17 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Configuration file for http://goreleaser.com

builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
- GO111MODULE=on
- GOFLAGS=-mod=vendor

changelog:
sort: asc
25 changes: 0 additions & 25 deletions CHANGELOG.md

This file was deleted.

8 changes: 0 additions & 8 deletions Dockerfile

This file was deleted.

Loading

0 comments on commit e9d79fc

Please sign in to comment.