Skip to content

Commit 15eccbc

Browse files
committed
Added docker build,push & switched to C.P binary
1 parent ad201a9 commit 15eccbc

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

.github/workflows/endtoend_test_CP.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@ jobs:
99
steps:
1010
- name: Checkout repository
1111
uses: actions/checkout@v3
12+
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v3
15+
16+
- name: Login to Docker Hub
17+
uses: docker/login-action@v3
18+
with:
19+
username: ${{ secrets.DOCKERHUB_USERNAME }}
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
22+
- name: Build and push Docker image
23+
uses: docker/build-push-action@v5
24+
with:
25+
context: .
26+
push: true
27+
tags: waltermity/demohttpserver:latest
1228

1329
- name: Set up Go
1430
uses: actions/setup-go@v5
@@ -20,10 +36,14 @@ jobs:
2036
with:
2137
config: kind-config.yaml
2238

23-
- name: Install cloud-provider-kind
39+
- name: Set up cloud-provider-kind
2440
run: |
25-
go install sigs.k8s.io/cloud-provider-kind@latest
26-
echo "${HOME}/go/bin" >> $GITHUB_PATH
41+
wget -O cloud-provider-kind.tar.gz https://github.com/kubernetes-sigs/cloud-provider-kind/releases/download/v0.6.0/cloud-provider-kind_0.6.0_linux_amd64.tar.gz
42+
mkdir -p cloud-provider-kind-tmp
43+
tar -xzf cloud-provider-kind.tar.gz -C cloud-provider-kind-tmp
44+
chmod +x cloud-provider-kind-tmp/cloud-provider-kind
45+
sudo mv cloud-provider-kind-tmp/cloud-provider-kind /usr/local/bin/
46+
rm -rf cloud-provider-kind-tmp cloud-provider-kind.tar.gz
2747
2848
- name: Start Cloud Provider
2949
run: |

0 commit comments

Comments
 (0)