Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update publish lambda workflow #121

Merged
merged 10 commits into from
Mar 18, 2025
Merged

Conversation

bennavapbc
Copy link
Collaborator

@bennavapbc bennavapbc commented Mar 7, 2025

🎫 Ticket

https://jira.cms.gov/browse/AB2D-6588

🛠 Changes

  • Update publish-lambdas.yml to allow it to be used by a workflow in the ab2d repo.
    • See related PR below
  • Add build_version as a workflow output
  • Remove environment as it's not relevant to publishing lambdas

Related PRs

ℹ️ Context

This PR is related to CMSgov/ab2d#1448 which migrates this Jenkins job:

This Jenkins job has a RUN_BUILD_JOB parameter. In order to make this workflow callable from the ab2d workflow in order to build lambdas, changes are required.

🧪 Validation

@bennavapbc bennavapbc requested review from a team, gsf and oluwolenpbc March 7, 2025 23:17
@bennavapbc bennavapbc changed the title Update publish lamda workflow Update publish lambda workflow Mar 7, 2025
@bennavapbc bennavapbc requested a review from gsf March 17, 2025 17:10
@bennavapbc bennavapbc merged commit d6955ae into main Mar 18, 2025
1 check passed
@bennavapbc bennavapbc deleted the update-publish-lamda-workflow branch March 18, 2025 18:18
bennavapbc added a commit to CMSgov/ab2d that referenced this pull request Mar 18, 2025
## 🎫 Ticket

https://jira.cms.gov/browse/AB2D-6588

## Before merging this PR

- [x] Merge [ab2d-lambdas PR
#121](CMSgov/ab2d-lambdas#121)
- [x] Update [line
64](https://github.com/CMSgov/ab2d/blob/lambda-tf-workflow/.github/workflows/deploy-lambda.yml#L64)
to set branch to `main` instead of `update-publish-lamda-workflow`


## 🛠 Changes

- Add deploy-lamda.yml workflow to run terraform init, plan, apply
- Workflow can also reuse `ab2d-lambdas/publish-lambdas.yml` workflow to
build lambdas

## Related PRs

- CMSgov/ab2d-lambdas#121
- CMSgov/ab2d-ops#310 

## ℹ️ Context

This workflow is migrated from 
-
https://jenkins.ab2d.cms.gov/job/AB2D-Ops/job/Terraform/job/Deploy%20Lambda/build?delay=0sec
-
https://github.com/CMSgov/ab2d-ops/blob/main/jenkins-files/Jenkinsfile.terraform-lambda


![image](https://github.com/user-attachments/assets/8488c403-2a91-4218-9128-d5f3062a3401)

## 🧪 Validation

Terraform apply works in dev:
https://github.com/CMSgov/ab2d/actions/runs/13910578486/job/38923695969


![image](https://github.com/user-attachments/assets/05ec9f55-b372-4d8b-8470-5f3fe2416771)


```
gh workflow run deploy-lambda.yml --ref lambda-tf-workflow -f apply=true -f environment=dev -f ab2dOpsBranch=PLT-939 -f ab2dLambdasBranch=update-publish-lamda-workflow -f runBuildJob=false -f buildVersion=1.1.0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants