-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split build and lint workflows into separate workflows per platform. …
…Create a badge for each workflow. Bump runner version
- Loading branch information
1 parent
0abe882
commit 68ab93b
Showing
6 changed files
with
56 additions
and
40 deletions.
There are no files selected for viewing
23 changes: 1 addition & 22 deletions
23
.github/workflows/build.yaml → .github/workflows/aws-build.yaml
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
16 changes: 1 addition & 15 deletions
16
.github/workflows/lint.yaml → .github/workflows/aws-lint.yaml
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Packer Build for GCP | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-gcp: | ||
runs-on: ubuntu-20.04 | ||
environment: gcp | ||
steps: | ||
- name: Checkout Packer project | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize Packer Plugin Binaries:GCP | ||
run: packer init ./gcp | ||
|
||
- name: Build Image:GCP | ||
env: | ||
PKR_VAR_project: ${{ secrets.GOOGLE_PROJECT }} | ||
GOOGLE_APPLICATION_CREDENTIALS: gcp.json | ||
run: | | ||
cat > $GOOGLE_APPLICATION_CREDENTIALS << EOF | ||
${{ secrets.GOOGLE_CREDENTIALS }} | ||
EOF | ||
trap "rm -f $GOOGLE_APPLICATION_CREDENTIALS" EXIT | ||
packer build -force -var-file=./gcp/amd64/values.pkrvars.hcl -var "runner_version=$(cat versions.json | jq -r '.runner')" ./gcp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Packer Lint for GCP | ||
|
||
on: | ||
pull_request: | ||
push: | ||
workflow_call: | ||
|
||
jobs: | ||
validate-gcp: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize Packer Plugin Binaries:GCP | ||
run: packer init ./gcp | ||
|
||
- name: Validate Template:GCP | ||
env: | ||
PKR_VAR_project: dummy_value | ||
run: packer validate -var-file=./gcp/amd64/values.pkrvars.hcl -var "runner_version=$(cat versions.json | jq -r '.runner')" ./gcp |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"runner": "v2.297.0" | ||
"runner": "v2.298.2" | ||
} |