Skip to content

Commit

Permalink
Merge branch 'main' into aws-ami-minimal
Browse files Browse the repository at this point in the history
  • Loading branch information
b4k3r authored Nov 2, 2023
2 parents 684dbfb + f9d8784 commit 9407e4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_aws_scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ jobs:
PKR_VAR_source_ami_architecture: ${{ matrix.arch }}
PKR_VAR_instance_type: ${{ matrix.arch == 'x86_64' && 't3.micro' || 't4g.micro' }}

- name: Upload manifest
uses: actions/upload-artifact@v3
with:
path: manifest_aws_${{ matrix.arch }}.json
name: manifest_aws_${{ matrix.arch }}.json
retention-days: 5

build-govcloud:
# Since we run in parallel, let's make sure we use the same timestamp for all jobs
needs: timestamp
Expand Down Expand Up @@ -95,10 +102,3 @@ jobs:
PKR_VAR_ami_name_prefix: spacelift-${{ needs.timestamp.outputs.timestamp }}
PKR_VAR_source_ami_architecture: ${{ matrix.arch }}
PKR_VAR_instance_type: ${{ matrix.arch == 'x86_64' && 't3.micro' || 't4g.micro' }}

- name: Upload manifest
uses: actions/upload-artifact@v3
with:
path: manifest_aws.json
name: manifest_aws.json
retention-days: 5
2 changes: 1 addition & 1 deletion aws.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ build {
}

post-processor "manifest" {
output = "manifest_aws.json"
output = "manifest_aws_${var.source_ami_architecture}.json"
}
}

0 comments on commit 9407e4c

Please sign in to comment.