Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into update-imdsv2-build…
Browse files Browse the repository at this point in the history
…-agents
  • Loading branch information
peterzhuamazon committed Jul 10, 2024
2 parents ee2cfc8 + 749a842 commit f87a05a
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 8 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/packer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Packer Validate

on:
pull_request:
paths:
- packer/**

env:
PACKER_VERSION: "1.8.7"

jobs:
packer-validate:
runs-on: ubuntu-latest
name: Run Packer
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup packer
uses: hashicorp/setup-packer@main
id: setup
with:
version: ${{ env.PACKER_VERSION }}

- name: Validate Packer Templates
id: validate
working-directory: packer
run: |
for template in `ls | grep ".json"`; do
echo $template
packer validate $template
done
2 changes: 1 addition & 1 deletion packer/jenkins-agent-al2-arm64.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"name-base":"Jenkins-Agent-AL2-ARM64-JDK21",
"name-base":"Jenkins-Agent-AL2-ARM64",
"os-version": "AL2",
"build-region":"us-east-1",
"build-vpc":"vpc-<>",
Expand Down
2 changes: 1 addition & 1 deletion packer/jenkins-agent-al2-x64.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"name-base":"Jenkins-Agent-AL2-X64-JDK21",
"name-base":"Jenkins-Agent-AL2-X64",
"os-version": "AL2",
"build-region":"us-east-1",
"build-vpc":"vpc-<>",
Expand Down
2 changes: 1 addition & 1 deletion packer/jenkins-agent-al2023-arm64.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"name-base":"Jenkins-Agent-AL2023-ARM64-JDK21",
"name-base":"Jenkins-Agent-AL2023-ARM64",
"os-version": "AL2023",
"build-region":"us-east-1",
"build-vpc":"vpc-<>",
Expand Down
2 changes: 1 addition & 1 deletion packer/jenkins-agent-al2023-x64.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"name-base":"Jenkins-Agent-AL2023-X64-JDK21",
"name-base":"Jenkins-Agent-AL2023-X64",
"os-version": "AL2023",
"build-region":"us-east-1",
"build-vpc":"vpc-<>",
Expand Down
2 changes: 1 addition & 1 deletion packer/jenkins-agent-macos12-x64.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables":{
"ami_name":"Jenkins-Agent-MacOS-X64-Mac1Metal-JDK21",
"ami_name":"Jenkins-Agent-MacOS-X64-Mac1Metal",
"os_version": "12.4",
"os_architecture": "x86_64_mac",
"build-region":"us-east-1",
Expand Down
2 changes: 1 addition & 1 deletion packer/jenkins-agent-ubuntu2004-x64.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"name-base":"Jenkins-Agent-Ubuntu2004-X64-JDK21",
"name-base":"Jenkins-Agent-Ubuntu2004-X64",
"os-version": "Ubuntu2004",
"build-region":"us-east-1",
"build-vpc":"vpc-<>",
Expand Down
2 changes: 1 addition & 1 deletion packer/jenkins-agent-win2019-x64-gradle-check.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"name-base":"Jenkins-Agent-Windows2019-X64-Gradle-Check-JDK21",
"name-base":"Jenkins-Agent-Windows2019-X64-Gradle-Check",
"os-version": "Windows2019",
"build-region":"us-east-1",
"build-vpc":"vpc-<>",
Expand Down
2 changes: 1 addition & 1 deletion packer/jenkins-agent-win2019-x64.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"variables": {
"name-base":"Jenkins-Agent-Windows2019-X64-JDK21",
"name-base":"Jenkins-Agent-Windows2019-X64",
"os-version": "Windows2019",
"build-region":"us-east-1",
"build-vpc":"vpc-<>",
Expand Down

0 comments on commit f87a05a

Please sign in to comment.