Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate from CircleCI to GitHub Actions #565

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
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
33 changes: 5 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,17 @@ version: 2.1
jobs:
lint:
docker:
- image: quay.io/helmpack/chart-testing:v3.3.1
- image: quay.io/prometheus/busybox
steps:
- checkout
- run: helm repo add stable https://charts.helm.sh/stable
- run: ct lint --config .circleci/chart-testing.yaml --lint-conf .circleci/lintconf.yaml
# Technically this only needs to be run on master, but it's good to have it run on every PR
# so that it is regularly tested.
- run: "true"
publish:
docker:
# We just need an image with `helm` on it. Handily we know of one already.
- image: quay.io/helmpack/chart-testing:v3.3.1
- image: quay.io/prometheus/busybox
steps:
# install the additional keys needed to push to GitHub. Alex Collins owns these keys.
- add_ssh_keys
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Circle CI Build"
- checkout
- run: helm repo add stable https://charts.helm.sh/stable
- run: helm repo add minio https://helm.min.io/
- run: helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
# Only actually publish charts on master.
- run: |
set -x
if [ "$CIRCLE_BRANCH" = "master" ]; then
export GIT_PUSH=true
else
export GIT_PUSH=false
fi
sh ./scripts/publish.sh
- run: "true"
workflows:
version: 2
workflow:
jobs:
- lint
- publish:
requires:
- lint
- publish
44 changes: 44 additions & 0 deletions .github/workflows/build-chart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Helm
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
container: quay.io/helmpack/chart-testing:v3.3.1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- run: helm repo add stable https://charts.helm.sh/stable
- run: ct lint --config .circleci/chart-testing.yaml --lint-conf .circleci/lintconf.yaml
# Technically this only needs to be run on master, but it's good to have it run on every PR
# so that it is regularly tested.
publish:
needs: lint
runs-on: ubuntu-latest
# We just need an image with `helm` on it. Handily we know of one already.
container: quay.io/helmpack/chart-testing:v3.3.1
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- uses: actions/checkout@v2
with:
ref: gh-pages
path: output
# Only actually publish charts on master.
- name: Publish
run: |
set -x
git config --global user.email "[email protected]"
git config --global user.name "$GITHUB_ACTOR"
helm repo add stable https://charts.helm.sh/stable
helm repo add minio https://helm.min.io/
helm repo add dandydeveloper https://dandydeveloper.github.io/charts/
if [ "${GITHUB_REF#refs/heads/}" = "master" ]; then
export GIT_PUSH=true
else
export GIT_PUSH=false
fi
sh ./scripts/publish.sh
2 changes: 1 addition & 1 deletion charts/argo-cd/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.8.4
description: A Helm chart for ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes.
name: argo-cd
version: 2.14.7
version: 2.14.8
home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords:
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-cd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ installCRDs: true

global:
image:
repository: argoproj/argocd
repository: quay.io/argoproj/argocd
tag: v1.8.4
imagePullPolicy: IfNotPresent
securityContext: {}
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-ci/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Argo-CI
name: argo-ci
version: 0.1.7
version: 0.1.8
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
appVersion: v1.0.0-alpha2
home: https://github.com/argoproj/argo-helm
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart to install Argo-Events in k8s Cluster
name: argo-events
version: 1.0.0
version: 1.0.1
keywords:
- argo-events
- sensor-controller
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/crds/eventbus-crd.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: eventbus.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/crds/eventsource-crd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: eventsources.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/crds/sensor-crd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: sensors.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/templates/eventbus-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.installCRD }}
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: eventbus.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/templates/eventsource-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.installCRD }}
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: eventsources.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/templates/sensor-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.installCRD }}
# Define a "sensor" custom resource definition
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: sensors.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-events/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ additionalSaNamespaces: []
additionalServiceAccountRules:
- apiGroups:
- apiextensions.k8s.io
- apiextensions.k8s.io/v1beta1
- apiextensions.k8s.io/v1
verbs:
- create
- delete
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-rollouts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.10.2"
description: A Helm chart for Argo Rollouts
name: argo-rollouts
version: 0.4.3
version: 0.4.4
icon: https://raw.githubusercontent.com/argoproj/argo/master/argo.png
home: https://github.com/argoproj/argo-helm
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/argo-rollouts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ controller:
tolerations: []
affinity: {}
image:
repository: argoproj/argo-rollouts
repository: quay.io/argoproj/argo-rollouts
tag: v0.10.2
pullPolicy: IfNotPresent

Expand Down
2 changes: 1 addition & 1 deletion charts/argo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: v2.12.5
description: A Helm chart for Argo Workflows
name: argo
version: 0.16.2
version: 0.16.3
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
home: https://github.com/argoproj/argo-helm
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/argo/crds/cluster-workflow-template-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clusterworkflowtemplates.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo/crds/cron-workflow-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: cronworkflows.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo/crds/workflow-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: workflows.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo/crds/workflow-eventbinding-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: workfloweventbindings.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argo/crds/workflow-template-crd.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: workflowtemplates.argoproj.io
Expand Down
2 changes: 1 addition & 1 deletion charts/argocd-notifications/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.0.1
description: A Helm chart for ArgoCD notifications, an add-on to ArgoCD.
name: argocd-notifications
type: application
version: 1.0.14
version: 1.0.15
home: https://github.com/argoproj/argo-helm
icon: https://raw.githubusercontent.com/argoproj/argo/master/docs/assets/argo.png
keywords:
Expand Down
12 changes: 6 additions & 6 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ set -eux
SRCROOT="$(cd "$(dirname "$0")/.." && pwd)"
GIT_PUSH=${GIT_PUSH:-false}

rm -rf $SRCROOT/output && git clone -b gh-pages [email protected]:argoproj/argo-helm.git $SRCROOT/output

helm repo add argoproj https://argoproj.github.io/argo-helm

for dir in $(find $SRCROOT/charts -mindepth 1 -maxdepth 1 -type d);
Expand All @@ -31,12 +29,14 @@ do
helm --debug package $dir
done

cp $SRCROOT/*.tgz output/
cd $SRCROOT/output && helm repo index .
cp $SRCROOT/*.tgz $SRCROOT/output/
cd $SRCROOT/output
helm repo index .

cd $SRCROOT/output && git status
git status
git add . && git commit -m "Publish charts"

if [ "$GIT_PUSH" == "true" ]
then
cd $SRCROOT/output && git add . && git commit -m "Publish charts" && git push [email protected]:argoproj/argo-helm.git gh-pages
git push origin gh-pages
fi