mirror of
https://gitea.com/docker/build-push-action.git
synced 2024-11-22 09:29:38 +01:00
ci: fix standalone test
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
c2085839e1
commit
a62bc1b22b
1 changed files with 0 additions and 39 deletions
39
.github/workflows/ci.yml
vendored
39
.github/workflows/ci.yml
vendored
|
@ -834,42 +834,3 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: ./test
|
context: ./test
|
||||||
file: ./test/Dockerfile
|
file: ./test/Dockerfile
|
||||||
|
|
||||||
standalone-kubernetes:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
-
|
|
||||||
name: Uninstall moby
|
|
||||||
run: |
|
|
||||||
sudo apt-get purge -y moby-engine moby-cli moby-buildx
|
|
||||||
-
|
|
||||||
name: Setup k8s cluster
|
|
||||||
run: |
|
|
||||||
set -x
|
|
||||||
sudo curl -fsSLo /usr/share/keyrings/kubernetes-archive-keyring.gpg https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
|
||||||
echo "deb [signed-by=/usr/share/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y kubelet kubeadm kubectl
|
|
||||||
sudo swapoff -a
|
|
||||||
sudo kubeadm init --cri-socket /run/containerd/containerd.sock
|
|
||||||
mkdir -p $HOME/.kube/
|
|
||||||
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
|
||||||
sudo chown $USER $HOME/.kube/config
|
|
||||||
kubectl taint nodes --all node-role.kubernetes.io/master-
|
|
||||||
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
|
|
||||||
kubectl wait --for=condition=ready --timeout=30s node --all
|
|
||||||
kubectl get nodes -o wide
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v1
|
|
||||||
with:
|
|
||||||
driver: kubernetes
|
|
||||||
-
|
|
||||||
name: Build
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
context: ./test
|
|
||||||
file: ./test/Dockerfile
|
|
||||||
|
|
Loading…
Reference in a new issue