Image Build #3
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: Image Build | ||
on: | ||
workflow_dispatch | ||
permissions: | ||
id-token: write | ||
contents: write | ||
jobs: | ||
image: | ||
if: github.event.actor == 'chkimes' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4 | ||
- name: Login to Azure | ||
uses: azure/login@8c334a195cbb38e46038007b304988d888bf676a #v2 | ||
with: | ||
client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
- name: Build Azure VM | ||
with: | ||
env: | ||
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
Check failure on line 28 in .github/workflows/image.yml GitHub Actions / Image BuildInvalid workflow file
|
||
AZURE_RESOURCE_GROUP: ${{ secrets.AZURE_RESOURCE_GROUP }} | ||
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }} | ||
AZURE_VM_NAME: ${{ secrets.AZURE_VM_NAME }} | ||
run: | | ||
set -e | ||
build-azure/build.sh | ||
mkdir img | ||
tar -xzvf image.tar.gz -C img | ||
- name: Generate provenance | ||
uses: github-early-access/generate-build-provenance@67d881a62db43e3a31b5d5fdc5454a540c7ea56e #main | ||
with: | ||
subject-path: img/* | ||