Skip to content

Commit

Permalink
Adjust GitHub actions to include updates for lambda changes
Browse files Browse the repository at this point in the history
This commit expands the push trigger in the GitHub actions to include changes under 'demo/lambda/src'. It also adds a step to commit modifications on 'demo/lambda/deployment/deploy.yaml' with an updated image tag.
  • Loading branch information
timam committed May 16, 2024
1 parent d93d01c commit c307c4d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ on:
push:
branches:
- main
paths:
- 'demo/lambda/src/**'
-
jobs:
build:
runs-on: ubuntu-latest
name: build docker image

steps:
- name: Git Checkout
uses: actions/checkout@v4
Expand All @@ -32,4 +36,10 @@ jobs:
run: |
export GIT_SHA=$(echo $GITHUB_SHA | cut -c1-8)
sed -i "s/:.*/:$GIT_SHA/" demo/lambda/deployment/deploy.yaml
- name: Add & Commit changes
uses: EndBug/add-and-commit@v9
with:
message: "Update deploy.yaml with the latest image tag"
add: 'demo/lambda/deployment/deploy.yaml'
default_author: github_actions

0 comments on commit c307c4d

Please sign in to comment.