Skip to content

Commit

Permalink
update dependencies, CI, etc
Browse files Browse the repository at this point in the history
Signed-off-by: jdolitsky <[email protected]>
  • Loading branch information
jdolitsky committed Oct 15, 2020
1 parent d2396be commit f314908
Show file tree
Hide file tree
Showing 8 changed files with 343 additions and 79 deletions.
9 changes: 0 additions & 9 deletions .codefresh/master.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build-pr

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.15.3'
- name: run unit tests
run: make test
- name: build binary
run: make build
- name: run acceptance tests
run: make acceptance
- name: upload coverage report
uses: actions/upload-artifact@master
with:
name: helmpush-coverage-report-${{ github.sha }}
path: .cover/
if: always()
- name: upload acceptance report
uses: actions/upload-artifact@master
with:
name: helmpush-acceptance-report-${{ github.sha }}
path: .robot/
if: always()
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build

on:
push:
branches: master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup go environment
uses: actions/setup-go@v1
with:
go-version: '1.15.3'
- name: run unit tests
run: make test
- name: build binary
run: make build
- name: run acceptance tests
run: make acceptance
- name: upload coverage report
uses: actions/upload-artifact@master
with:
name: helmpush-coverage-report-${{ github.sha }}
path: .cover/
if: always()
- name: upload acceptance report
uses: actions/upload-artifact@master
with:
name: helmpush-acceptance-report-${{ github.sha }}
path: .robot/
if: always()
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# helm push plugin
<img align="right" src="https://github.com/helm/chartmuseum/raw/master/logo.png">

[![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/chartmuseum/chartmuseum%2Fhelm-push%2Fmaster?type=cf-1)]( https://g.codefresh.io/public/accounts/chartmuseum/pipelines/chartmuseum/helm-push/master)
[![GitHub Actions status](https://github.com/chartmuseum/helm-push/workflows/build/badge.svg)](https://github.com/chartmuseum/helm-push/actions?query=workflow%3Abuild)

Helm plugin to push chart package to [ChartMuseum](https://github.com/helm/chartmuseum)

Expand Down
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module github.com/chartmuseum/helm-push

go 1.14
go 1.15

require (
github.com/Masterminds/semver v1.5.0 // indirect
github.com/ghodss/yaml v1.0.0
github.com/spf13/cobra v1.0.0
helm.sh/helm/v3 v3.2.1
k8s.io/helm v2.16.7+incompatible
github.com/spf13/cobra v1.1.0
helm.sh/helm/v3 v3.3.4
k8s.io/helm v2.16.12+incompatible
)
320 changes: 262 additions & 58 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion scripts/acceptance.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -ex

PY_REQUIRES="robotframework==3.1.2"
PY_REQUIRES="robotframework==3.2.2"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../
Expand Down
12 changes: 6 additions & 6 deletions scripts/setup_test_environment.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash -ex

HELM_V2_VERSION="v2.16.1"
HELM_V3_VERSION="v3.0.1"
CHARTMUSEUM_VERSION="v0.11.0"
HELM_V2_VERSION="v2.16.12"
HELM_V3_VERSION="v3.3.4"
CHARTMUSEUM_VERSION="v0.12.0"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../
Expand All @@ -26,7 +26,7 @@ install_helm_v2() {
if [ ! -f "testbin/helm2" ]; then
mkdir -p testbin/
TARBALL="helm-${HELM_V2_VERSION}-${PLATFORM}-amd64.tar.gz"
wget "https://get.helm.sh/${TARBALL}"
curl -LO "https://get.helm.sh/${TARBALL}"
tar -C testbin/ -xzf $TARBALL
rm -f $TARBALL
pushd testbin/
Expand All @@ -44,7 +44,7 @@ install_helm_v3() {
if [ ! -f "testbin/helm3" ]; then
mkdir -p testbin/
TARBALL="helm-${HELM_V3_VERSION}-${PLATFORM}-amd64.tar.gz"
wget "https://get.helm.sh/${TARBALL}"
curl -LO "https://get.helm.sh/${TARBALL}"
tar -C testbin/ -xzf $TARBALL
rm -f $TARBALL
pushd testbin/
Expand All @@ -61,7 +61,7 @@ install_chartmuseum() {
if [ ! -f "testbin/chartmuseum" ]; then
mkdir -p testbin/
pushd testbin/
wget "https://s3.amazonaws.com/chartmuseum/release/${CHARTMUSEUM_VERSION}/bin/${PLATFORM}/amd64/chartmuseum"
curl -LO "https://s3.amazonaws.com/chartmuseum/release/${CHARTMUSEUM_VERSION}/bin/${PLATFORM}/amd64/chartmuseum"
chmod +x ./chartmuseum
popd
fi
Expand Down

0 comments on commit f314908

Please sign in to comment.