Add Gigabyte hardware support #556
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: Build image from pull request | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| env: | |
| GCS_BUCKET: images.metal-pod.io | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@master | |
| - uses: google-github-actions/setup-gcloud@v0 | |
| with: | |
| service_account_email: ${{ secrets.GCP_SA_EMAIL }} | |
| service_account_key: ${{ secrets.GCP_SA_KEY }} | |
| - name: Build image | |
| run: make metal-hammer-initrd.img.lz4 | |
| - name: Prepare image upload | |
| run: | | |
| export PULL_REQUEST_NUMBER=$(echo "$GITHUB_REF" | awk -F / '{print $3}') | |
| mkdir -p images/metal-hammer/pull-requests/${PULL_REQUEST_NUMBER}-${GITHUB_HEAD_REF##*/} | |
| mv metal-hammer-initrd.img.lz4* images/metal-hammer/pull-requests/${PULL_REQUEST_NUMBER}-${GITHUB_HEAD_REF##*/}/ | |
| - name: Upload image tarballs to GCS | |
| run: gsutil -m cp -r -p images/metal-hammer gs://$GCS_BUCKET |