feat(graph): Add search (#70) #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-Merge | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ vars.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASS }} | |
- name: Build the Docker image | |
id: build_image | |
run: | | |
docker build -t ${{ vars.DOCKERHUB_USERNAME }}/negar-frontend:latest . | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push the Docker image | |
run: | | |
docker tag ${{ vars.DOCKERHUB_USERNAME }}/negar-frontend:latest ${{ vars.DOCKERHUB_USERNAME }}/negar-frontend:${{ steps.tag_version.outputs.new_tag }} | |
docker push ${{ vars.DOCKERHUB_USERNAME }}/negar-frontend:${{ steps.tag_version.outputs.new_tag }} | |
- name: Install yq | |
run: | | |
sudo apt-get update | |
sudo snap install yq | |
- name: Clone Deployment Repository | |
uses: GuillaumeFalourd/[email protected] | |
with: | |
depth: 1 | |
branch: 'main' | |
owner: 'Star-Academy' | |
repository: 'Summer1403-Project-Group04-Deployment' | |
- name: Update values.yaml for frontend | |
run: | | |
echo "Updating values.yaml for frontend..." | |
cd Summer1403-Project-Group04-Deployment | |
yq eval ".frontend.tag = \"${{ steps.tag_version.outputs.new_tag }}\"" -i values.yaml | |
git config --local user.email "[email protected]" | |
git config --local user.name "muhuchah" | |
git add values.yaml | |
git commit -m "Update frontend tag to ${{ steps.tag_version.outputs.new_tag }}" | |
- name: Push changes | |
run: | | |
cd Summer1403-Project-Group04-Deployment | |
git remote set-url origin https://x-access-token:${{ secrets.PAT }}@github.com/Star-Academy/Summer1403-Project-Group04-Deployment.git | |
git push origin main |