From f3f6fb075f5f135f22b06ba013d890d29df72c0d Mon Sep 17 00:00:00 2001 From: David Arnold <10138997+djaboxx@users.noreply.github.com> Date: Thu, 17 Apr 2025 02:26:24 -0700 Subject: [PATCH] Image build (#4) * 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 --- .github/workflows/build.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8c23787..7f303f3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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: @@ -100,4 +100,3 @@ jobs: -var "repository_uri=${{ env.repository_uri }}" \ -var "tag=${{ env.next_tag }}" \ packer.pkr.hcl -