Skip to content

Commit

Permalink
Image build (#4)
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

---------

Co-authored-by: Dave Arnold <dave@roknsound.com>
  • Loading branch information
2 people authored and GitHub committed Apr 17, 2025
1 parent ff1b8ed commit f3f6fb0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
build:
runs-on: ubuntu-latest
env:
PACKER_GITHUB_API_TOKEN: ${{ secrets.GH_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}

steps:
- uses: actions/setup-node@v3
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Install gtag dependencies
run: |
python -m pip install -r requirements.txt
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3.1.2
with:
Expand Down Expand Up @@ -100,4 +100,3 @@ jobs:
-var "repository_uri=${{ env.repository_uri }}" \
-var "tag=${{ env.next_tag }}" \
packer.pkr.hcl

0 comments on commit f3f6fb0

Please sign in to comment.