Skip to content

Commit

Permalink
Modify github/workflow/release.yaml to delete release-1.20, because K…
Browse files Browse the repository at this point in the history
…ins only supports K8s 1.22 version
  • Loading branch information
dodiadodia committed Apr 4, 2023
1 parent 8d97e66 commit 950968f
Showing 1 changed file with 0 additions and 79 deletions.
79 changes: 0 additions & 79 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,82 +108,3 @@ jobs:
sudo rm -rf ./_output
sudo rm -rf edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.22.6
sudo rm -rf edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.22.6
- name: Check out edgeadm (@release-1.20)
uses: actions/checkout@v3
with:
ref: 'release-1.20'

- name: Build edgeadm for multiarch(@release-1.20)
run: make build.multiarch

- name: Checkout edge-install static file(@AMD64-1.20)
uses: actions/checkout@v3
with:
repository: 'superedge/edge-install'
path: 'edge-install'
ref: '1.20-AMD64'
token: ${{ secrets.ACTION_TOKEN }}
lfs: true

- name: Build edgeadm package(@AMD64-1.20)
run: |
cd ${{ github.workspace }}
mv edge-install/build_package.sh .
sh build_package.sh #build kube-linux-* package
#make edgeadm package
mkdir edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.20.6
mv kube-linux-amd64-v1.20.6.tar.gz ./edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.20.6
cp ./_output/linux/amd64/edgeadm ./edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.20.6
tar zcvf edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.20.6.tgz ./edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.20.6
#clear env
rm -rf build_package.sh
rm -rf edge-install
- name: Checkout edge-install static file(@ARM64-1.20)
uses: actions/checkout@v3
with:
repository: 'superedge/edge-install'
path: 'edge-install'
ref: '1.20-ARM64'
token: ${{ secrets.ACTION_TOKEN }}
lfs: true

- name: Build edgeadm package(@ARM64-1.20)
run: |
cd ${{ github.workspace }}
mv edge-install/build_package.sh .
sh build_package.sh #build kube-linux-* package
#make edgeadm-linux-* package
mkdir edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.20.6
mv kube-linux-arm64-v1.20.6.tar.gz ./edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.20.6
cp ./_output/linux/arm64/edgeadm ./edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.20.6
tar zcvf edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.20.6.tgz ./edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.20.6
#clear env
rm -rf build_package.sh
rm -rf edge-install
- name: Upload Release edgeadm for AMD64-1.20
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.20.6.tgz
asset_name: edgeadm-linux-amd64-${{ github.ref_name }}-k8s-1.20.6.tgz
asset_content_type: application/tgz

- name: Upload Release edgeadm for ARM64-1.20
uses: actions/upload-release-asset@main
env:
GITHUB_TOKEN: ${{ secrets.ACTION_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.20.6.tgz
asset_name: edgeadm-linux-arm64-${{ github.ref_name }}-k8s-1.20.6.tgz
asset_content_type: application/tgz

0 comments on commit 950968f

Please sign in to comment.