Skip to content

Commit

Permalink
Merge pull request #28 from kotalco/remove-do-cluster
Browse files Browse the repository at this point in the history
remove DO testing CI jobs
  • Loading branch information
mFarghaly authored Apr 24, 2024
2 parents 9ca1257 + 1aeb129 commit cd5a536
Showing 1 changed file with 1 addition and 43 deletions.
44 changes: 1 addition & 43 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,46 +48,4 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
test-on-digital-ocean:
runs-on: ubuntu-latest
needs: [build]
if: github.event_name == 'push'

steps:
- uses: actions/checkout@v3

- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-7`" >> $GITHUB_ENV

- name: Checkout kotal-helm-chart Repo
uses: actions/checkout@v3
with:
repository: kotalco/kotal-helm-chart
path: kotal-helm-chart

- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0

- name: Add helm dependencies repositories
run: |
for dir in $(ls -d kotal-helm-chart/charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
helm dependency update kotal-helm-chart/charts/kotal
- name: K8s-set-context
uses: azure/k8s-set-context@v1
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG_DO_TESTING }}

- name: Update Kotal-Helm-Chart with new CRDs
run: |
kubectl apply -f ./config/crd/bases/
- name: Testing and Update Kotal-Helm-Chart with controller-manager new image
run: |
helm upgrade kotal kotal-helm-chart/charts/kotal --install --wait --namespace=kotal --create-namespace --set "manager.tag=${SHORT_SHA}" --set "staging=true" --set=app.name=kotal --reuse-values --atomic
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit cd5a536

Please sign in to comment.