mirror of
https://github.com/kubenetworks/kubevpn.git
synced 2025-09-26 19:31:17 +08:00
chore: add sync image to ccr.ccs.tencentyun.com (#636)
This commit is contained in:
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@@ -19,19 +19,27 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install regctl
|
||||
uses: regclient/actions/regctl-installer@main
|
||||
with:
|
||||
release: 'main'
|
||||
|
||||
- name: Push image to docker hub
|
||||
run: |
|
||||
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin
|
||||
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
echo ${{ secrets.TENCENT_DOCKER_PASSWORD }} | docker login ccr.ccs.tencentyun.com -u ${{ secrets.TENCENT_DOCKER_USER }} --password-stdin
|
||||
docker buildx create --use
|
||||
make container
|
||||
RELEASE_VERSION=${GITHUB_REF#refs/*/}
|
||||
regctl image copy ghcr.io/kubenetworks/kubevpn:${RELEASE_VERSION} ccr.ccs.tencentyun.com/kubevpn/kubevpn:${RELEASE_VERSION}
|
||||
regctl image copy ghcr.io/kubenetworks/kubevpn:${RELEASE_VERSION} ccr.ccs.tencentyun.com/kubevpn/kubevpn:latest
|
||||
|
||||
- name: Release Note
|
||||
run: |
|
||||
RELEASE_VERSION=${GITHUB_REF#refs/*/}
|
||||
PREVERSION=$(git for-each-ref --sort='-creatordate' --format='%(refname:lstrip=2)' --count=50 'refs/tags/*' | grep -v 'rc' | awk 'NR==2')
|
||||
echo ${PREVERSION}
|
||||
echo ${RELEASE_VERSION}
|
||||
echo ${PREVERSION}
|
||||
echo "$(./.github/release-note.sh ${PREVERSION} ${RELEASE_VERSION})" > release_note.md
|
||||
- name: Create Release
|
||||
@@ -217,12 +225,22 @@ jobs:
|
||||
--token "${{ secrets.CREATE_HELM_PR }}" \
|
||||
--release-name-template "v{{ .Version }}" \
|
||||
--index-path ./index.yaml \
|
||||
--charts-repo https://github.com/$owner/$repo \
|
||||
--pages-branch master \
|
||||
--pages-index-path charts/index.yaml \
|
||||
--pr
|
||||
--push
|
||||
./cr index \
|
||||
--owner "$owner" \
|
||||
--git-repo charts \
|
||||
--token "${{ secrets.CREATE_HELM_PR }}" \
|
||||
--release-name-template "v{{ .Version }}" \
|
||||
--index-path ./index.yaml \
|
||||
--pages-branch master \
|
||||
--pages-index-path index.yaml \
|
||||
--push
|
||||
|
||||
snapcraft:
|
||||
runs-on: ubuntu-24.04
|
||||
needs: [ github-pages-deploy ]
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||
steps:
|
||||
@@ -243,6 +261,7 @@ jobs:
|
||||
snapcraft upload --release=stable kubevpn_${RELEASE_VERSION}_amd64.snap
|
||||
snapcraft-arm:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
needs: [ github-pages-deploy ]
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||
steps:
|
||||
|
Reference in New Issue
Block a user