Skip to content

Commit

Permalink
Image build (#5)
Browse files Browse the repository at this point in the history
* Remove obsolete Lambda packaging script and related configuration files

- Deleted `package_lambda.py` script responsible for packaging AWS Lambda functions and layers.
- Removed `pip.conf` configuration file for pip settings.
- Eliminated `requirements.txt` file that specified Python dependencies.
- Deleted `test_payload.json` used for testing Lambda functions.
- Removed empty JSON and TFVAR files in `varfiles` directory.
- Deleted `variables.tf` file containing Terraform variable definitions.
- Removed `versions.tf` file specifying Terraform version requirements.
- Added new GitHub Actions workflow for building and pushing Lambda container images using Packer.
- Introduced `packer.pkr.hcl` file for Packer configuration to build Docker images for Lambda.

* Refactor GitHub API integration to remove Census-specific references and improve configuration handling

* Update Python setup in build workflow to use actions/setup-python@v4 and improve dependency installation

* Add Terraform backend configuration for GCS storage

* Add GOOGLE_CREDENTIALS environment variable to build workflow

* Remove unused PACKER_GITHUB_API_TOKEN from build workflow environment

* updating build

---------

Co-authored-by: Dave Arnold <dave@roknsound.com>
  • Loading branch information
2 people authored and GitHub committed Apr 17, 2025
1 parent a0bd23d commit 9baf9be
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: write
Expand Down Expand Up @@ -38,7 +40,7 @@ jobs:
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: requirements.txt
cache-dependency-path: gtag_requirements.txt

- name: Install gtag dependencies
run: |
Expand Down Expand Up @@ -74,6 +76,9 @@ jobs:
uses: aws-actions/amazon-ecr-login@v2
with:
mask-password: true
registry-type: public
env:
AWS_REGION: ${{ env.AWS_DEFAULT_REGION }}

- name: packer init
run: packer init packer.pkr.hcl
Expand Down

0 comments on commit 9baf9be

Please sign in to comment.