-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(main): delete registry code from fork (#2875)
* feature(main): delete registry code from fork Signed-off-by: cuisongliu <[email protected]> * feature(main): delete registry code from fork Signed-off-by: cuisongliu <[email protected]> # Conflicts: # fork/github.com/heroku/docker-registry-client/registry/json.go # fork/github.com/heroku/docker-registry-client/registry/manifest.go --------- Signed-off-by: cuisongliu <[email protected]>
- Loading branch information
1 parent
41d2092
commit 22baae1
Showing
62 changed files
with
785 additions
and
4,489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,62 +37,6 @@ jobs: | |
with: | ||
name: sealctl | ||
path: /usr/bin/sealctl | ||
verify-registry: | ||
needs: [build] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Download sealctl | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: sealctl | ||
path: /tmp/ | ||
- name: Download sealos | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: sealos | ||
path: /tmp/ | ||
- name: Verify sealctl | ||
run: | | ||
sudo chmod a+x /tmp/{sealos,sealctl} | ||
sudo mv /tmp/{sealos,sealctl} /usr/bin/ | ||
sudo sealctl version | ||
sudo sealos version | ||
- name: Remove containerd && docker | ||
uses: labring/[email protected] | ||
with: | ||
type: prune | ||
- name: Auto install k8s using sealos | ||
run: | | ||
sudo sealos run labring/kubernetes:v1.25.0 --single --debug | ||
mkdir -p "$HOME/.kube" | ||
sudo cp -i /etc/kubernetes/admin.conf "$HOME/.kube/config" | ||
sudo chown "$(whoami)" "$HOME/.kube/config" | ||
kubectl get svc | ||
kubectl get pod -A | ||
sudo cat /root/.sealos/default/etc/kubeadm-init.yaml | ||
sudo cat /root/.sealos/default/Clusterfile | ||
- name: Verify Registry Status | ||
run: | | ||
sealctl login --username admin --password passw0rd sealos.hub:5000 | ||
sealctl pull alpine:3 | ||
sealctl tag alpine:3 sealos.hub:5000/library/alpine:3 | ||
sealctl push sealos.hub:5000/library/alpine:3 | ||
sealctl registry status | ||
- name: Verify Registry Images | ||
run: | | ||
sealctl registry images | ||
sealctl registry images -n sealos.hub:5000 --filter tag=*5.4* | ||
sealctl registry images -n sealos.hub:5000 --filter name=kube*,tag=3 | ||
sealctl registry images -n sealos.hub:5000 --filter name=library/alpine,tag=3 | ||
sealctl registry images -n sealos.hub:5000 --filter name=library/alpine,tag=3 --json | ||
- name: Verify Registry Image | ||
run: | | ||
sealctl registry image -n sealos.hub:5000 --image library/alpine:3 | ||
sealctl registry image -n sealos.hub:5000 --image library/alpine:3 --json | ||
- name: Verify Registry Rmi Image | ||
run: | | ||
sealctl registry rmi -n sealos.hub:5000 --debug library/alpine:3 | ||
sudo sealctl registry prune --debug | ||
verify-registry-save: | ||
needs: [build] | ||
runs-on: ubuntu-20.04 | ||
|
@@ -131,4 +75,4 @@ jobs: | |
# nginx:1.23.3 | ||
# busybox:1.35 | ||
# EOF | ||
# sealctl registry save default --data-dir default --max-pull-procs 8 --debug . | ||
# sealctl registry save default --data-dir default --max-pull-procs 8 --debug . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
fork/github.com/google/go-containerregistry/pkg/name/README.md
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
fork/github.com/google/go-containerregistry/pkg/name/check.go
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
fork/github.com/google/go-containerregistry/pkg/name/digest.go
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.