Merge pull request #97 from svc-design/svc-design-patch-1

Update sync-images-apollo.yaml
This commit is contained in:
shenlan 2025-03-20 15:41:27 +08:00 committed by GitHub
commit 829050ad68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -58,3 +58,18 @@ jobs:
docker pull docker.io/apolloconfig/apollo-portal:2.3.0
docker tag docker.io/apolloconfig/apollo-portal:2.3.0 global-images.onwalk.net/public/apolloconfig/apollo-portal:2.3.0
docker push global-images.onwalk.net/public/apolloconfig/apollo-portal:2.3.0
kubectl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Initialize and Sync Harbor Jobservice
env:
USER: ${{ secrets.IMAGES_REPO_USER }}
PASSWORD: ${{ secrets.IMAGES_REPO_PASSWORD }}
shell: bash
run: |
sudo apt update && sudo apt install -y git
echo "$PASSWORD" | docker login --username=$USER --password-stdin images.onwalk.net
docker pull docker.io/bitnami/kubectl:1.31
docker tag docker.io/bitnami/kubectl:1.31 images.onwalk.net/public/bitnami/kubectl:1.31
docker push images.onwalk.net/public/bitnami/kubectl:1.31