Skip to content

Commit

Permalink
Sorting cloen bit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathew Walters authored and Mathew Walters committed Nov 6, 2024
1 parent 958e45d commit d06d777
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,17 @@ jobs:
run: |
docker push ghcr.io/$REPO_OWNER/$APP_NAME:${{ env.IMAGE_TAG }}
- name: Clone manifests repository
run: |
git clone https://github.com/TakeshiKovacs/git-ops.git manifests-repo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Set up new app manifests
run: |
# Define paths and new app folder
TEMPLATE_DIR="kubernetes/_templates/app"
NEW_APP_DIR="kubernetes/$APP_NAME"
TEMPLATE_DIR="manifests-repo/kubernetes/_templates/app"
NEW_APP_DIR="manifests-repo/kubernetes/$APP_NAME"
# Copy the template directory to the new app folder
mkdir -p $NEW_APP_DIR
Expand All @@ -67,8 +73,9 @@ jobs:
cat $NEW_APP_DIR/service.yaml
cat $NEW_APP_DIR/kustomization.yaml
- name: Commit and Push Changes
- name: Commit and Push Changes to Manifests Repo
run: |
cd manifests-repo
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add kubernetes/$APP_NAME
Expand Down

0 comments on commit d06d777

Please sign in to comment.