Skip to content

Commit

Permalink
(ci): build using make
Browse files Browse the repository at this point in the history
  • Loading branch information
narcis96 committed Mar 6, 2024
1 parent b960f47 commit f0af24f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,47 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: "1.22"

- name: Install DevSpace
run: |
curl -fsSL -o /tmp/devspace https://github.com/devspace-cloud/devspace/releases/latest/download/devspace-linux-amd64
chmod +x /tmp/devspace
sudo mv /tmp/devspace /usr/local/bin/devspace
- name: Install kubectl, kustomize and clusterctl
run: |
curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash && sudo mv kustomize /usr/local/bin/
curl -L https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.6.1/clusterctl-linux-amd64 -o clusterctl && chmod +x clusterctl && sudo mv clusterctl /usr/local/bin/
- name: Run clusterctl command
run: |
clusterctl config repositories | grep vcluster
- name: Check Kubernetes connectivity
run: |
echo "=== Kubectl version ==="
kubectl version --client
echo "=== Kubectl config ==="
kubectl config view
echo "=== Kubectl current context ==="
kubectl config current-context
echo "=== Kubectl cluster info ==="
kubectl cluster-info
echo "=== Kubectl get nodes ==="
kubectl get nodes
echo "=== Kubectl get pods ==="
kubectl get pods --all-namespaces
echo "=== Kubectl get namespaces ==="
kubectl get namespaces
echo "=== Test kubectl command ==="
kubectl get all --all-namespaces
- name: Run kubectl get namespaces
run: |
kubectl get namespaces
- name: DevSpace Deploy
run: |
devspace deploy -p deploy
2 changes: 1 addition & 1 deletion devspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dev:
- '!/go.mod'
- '!/go.sum'
- '!/devspace_start.sh'
- 'Makefile'
- '!/Makefile'

commands:
dev: |-
Expand Down

0 comments on commit f0af24f

Please sign in to comment.