https://github.com/libre-devops/azure-packer-gh-action
A repo used to run Libre DevOps Packer build
https://github.com/libre-devops/azure-packer-gh-action
Last synced: 8 months ago
JSON representation
A repo used to run Libre DevOps Packer build
- Host: GitHub
- URL: https://github.com/libre-devops/azure-packer-gh-action
- Owner: libre-devops
- License: mit
- Created: 2022-05-28T11:08:35.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-28T22:04:30.000Z (about 4 years ago)
- Last Synced: 2025-05-05T04:17:15.839Z (about 1 year ago)
- Language: Shell
- Size: 16.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Libre DevOps - Azure Terraform GitHub Action
Hello :wave:
This is an action for running Packer on Azure
# Example Usage
```yaml
name: 'Packer Build'
# Allow run manually
on:
workflow_dispatch:
jobs:
azure-terraform-job:
name: 'Terraform Build'
runs-on: ubuntu-latest
environment: tst
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v3
- name: Libre DevOps - Run Packer for Azure - GitHub Action
env:
PKR_VAR_dockerhub_login: ${{ secrets.DockerHubUsername }}
PKR_VAR_dockerhub_password: ${{ secrets.DockerHubPassword }}
id: packer-build
uses: libre-devops/azure-packer-gh-action@v1
with:
packer-template-path: "packer/linux/ubuntu/2204/ubuntu2204.pkr.hcl"
packer-client-id: ${{ secrets.SpokeSvpClientId }}
packer-client-secret: ${{ secrets.SpokeSvpClientSecret }}
packer-subscription-id: ${{ secrets.SpokeSubId }}
packer-tenant-id: ${{ secrets.SpokeTenantId }}
```