Update to rook v1.12.10, ceph v17.2.6 #128
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
name: hypercloud-stroage | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
release: | |
types: | |
- published | |
defaults: | |
run: | |
working-directory: hcsctl | |
jobs: | |
lint: | |
runs-on: ubuntu-18.04 # golangci-lint-action does not support prolinux | |
timeout-minutes: 3 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
version: v1.29 | |
working-directory: hcsctl | |
build: | |
if: "! contains(github.event.pull_request.title, '[skip-ci]')" | |
runs-on: prolinux | |
timeout-minutes: 3 | |
needs: [lint] | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ^1.15 | |
id: go | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Get dependencies | |
run: go get github.com/markbates/pkger/cmd/pkger | |
- name: Build | |
run: make | |
e2e: | |
if: "! contains(github.event.pull_request.title, '[skip-ci]')" | |
runs-on: prolinux | |
needs: [build] | |
timeout-minutes: 90 | |
strategy: | |
matrix: | |
config: | |
- {k8s: v1.22.4, network: calico} | |
steps: | |
- run: | | |
export BOX_OS=centos8 KUBE_VERSION=${{ matrix.config.k8s }} KUBE_NETWORK=${{ matrix.config.network }} | |
../../hack/centos_cluster.sh up | |
./hcsctl install ../../hack/inventory/test-sample | |
./hcsctl ceph status | |
./hcsctl ceph exec ceph osd status | |
./rook.test | |
./cdi.test | |
./hcsctl uninstall ../../hack/inventory/test-sample | |
./hcsctl uninstall ../../hack/inventory/test-sample # idempotent | |
../../hack/centos_cluster.sh down | |
working-directory: hcsctl/build | |
deploy: | |
if: github.event_name == 'release' | |
needs: [lint, build, e2e] | |
runs-on: prolinux | |
steps: | |
- name: Upload hcsctl binary | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: hcsctl/build/hcsctl | |
asset_name: hcsctl | |
asset_content_type: application/octet-stream | |
- name: Upload rook.test binary | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: hcsctl/build/rook.test | |
asset_name: rook.test | |
asset_content_type: application/octet-stream | |
- name: Upload cdi.test binary | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
asset_path: hcsctl/build/cdi.test | |
asset_name: cdi.test | |
asset_content_type: application/octet-stream | |