Adapt racadm command version 11.0.1 #335
This file contains hidden or 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: main | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - 'main' | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-22.04 # Use the version of Ubuntu supported by OSMA. | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup golang | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install test tools | |
| run: make setup | |
| - name: Check auto-generated files | |
| run: make check-generate | |
| - name: Run test | |
| run: make test | |
| - name: Build binaries | |
| run: make install GOBIN=`pwd`/docker | |
| - name: Build setup-hw image | |
| run: | | |
| curl 'https://dl.dell.com/FOLDER12638439M/1/Dell-iDRACTools-Web-LX-11.3.0.0-795_A00.tar.gz?uid=a19a6035-6a13-48b9-1fd5-4587c4944a96&fn=Dell-iDRACTools-Web-LX-11.3.0.0-795_A00.tar.gz' \ | |
| -H 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36' \ | |
| --output idrac-tools.tar.gz | |
| tar -xzf idrac-tools.tar.gz -C docker | |
| if [ $$? -ne 0 ]; then | |
| echo "Failed to download iDRACTools. Please check the URL or your network connection." | |
| exit 1 | |
| fi | |
| ls -lR docker/iDRACTools/racadm/UBUNTU22/x86_64 | |
| docker build -t ghcr.io/cybozu-go/setup-hw:latest --target stage1 docker | |
| if [ $$? -ne 0 ]; then | |
| echo "Failed to build the setup-hw image. Please check the Dockerfile and the build context." | |
| exit 1 | |
| fi | |
| docker build -t ghcr.io/cybozu-go/setup-hw-secret:latest docker | |
| if [ $$? -ne 0 ]; then | |
| echo "Failed to build the setup-hw-secret image. Please check the Dockerfile and the build context." | |
| exit 1 | |
| fi |