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

Hot fix build image #84

Merged
merged 12 commits into from
Nov 10, 2024
21 changes: 6 additions & 15 deletions .github/workflows/gitops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- hot-fix-build-image
paths:
- services/**

Expand Down Expand Up @@ -91,18 +92,8 @@ jobs:

- name: Commit the changes
run: |
# Configure Git user details
git config --global user.email "[email protected]"
git config --global user.name "nshm"

# Check out the branch that triggered the workflow
git fetch origin
git checkout $GITHUB_REF_NAME

# Pull the latest changes from the remote branch, allowing rebasing to keep history clean
git pull origin $GITHUB_REF_NAME --rebase || true

# Commit any changes (including uncommitted changes) and push
git add -A
git commit -m "chore: auto-commit and updated image tags for services: ${{ matrix.service }}" || echo "No changes to commit"
git push origin $GITHUB_REF_NAME || echo "Nothing to push"
git fetch origin
git config --global user.email "[email protected]"
git config --global user.name "nshm"
git commit -am "chore: updated image tags for services: ${{ matrix.service }}"
git push origin $GITHUB_REF_NAME --force
2 changes: 1 addition & 1 deletion helm/nshm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ wishlist:
web:
image:
repository: z1yoon/nshm-web
tag: e4c2d79d7e2c4ba2cc12a51d0ca5feeb38852d7f
tag: 0632970267289c35ded855c692f3fdd5f905081c
replicas: 1
resources:
limits:
Expand Down