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

remove DO testing CI jobs #28

Merged
merged 1 commit into from
Apr 24, 2024
Merged
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
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 }}
Loading