Pass partition id during machine register (#142) #93
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: master | |
on: | |
push: | |
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 | |
uses: metal-stack/action-docker-make@master | |
with: | |
args: > | |
--no-cache | |
--no-lint | |
--no-push | |
--summary | |
- name: Prepare image upload | |
run: | | |
mkdir -p images/metal-hammer/ | |
mv metal-hammer-initrd.img.lz4* images/metal-hammer/ | |
- name: Upload image tarballs to GCS | |
run: gsutil -m cp -r -p images/metal-hammer gs://$GCS_BUCKET | |
- uses: release-drafter/release-drafter@v6 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |