Skip to content

Commit

Permalink
chore: removing unused env attributes for CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
petruki committed Sep 5, 2024
1 parent 9b0e8d8 commit 769bd6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ jobs:
GO_ENV: test
MONGODB_URI: mongodb://127.0.0.1:27017
MONGO_DB: switcher-gitops-test
SWITCHER_API_URL: ${{ secrets.SWITCHER_API_URL }}
SWITCHER_API_JWT_SECRET: ${{ secrets.SWITCHER_API_JWT_SECRET }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
GIT_USER: ${{ secrets.GIT_USER }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
GIT_TOKEN_READ_ONLY: ${{ secrets.GIT_TOKEN_READ_ONLY }}
GIT_REPO_URL: ${{ secrets.GIT_REPO_URL }}
GIT_BRANCH: ${{ secrets.GIT_BRANCH }}
Expand Down
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,18 @@ GitOps Domain Snapshot Orchestrator for Switcher API
**Switcher GitOps** is Domain Snapshot Orchestrator for Switcher API. It allows you to manage your feature flags and configurations in a GitOps manner. It is a simple and easy way to manage your feature flags and configurations in a versioned manner.

# Features
- Manage Switchers with GitOps driven environment
- Multiple and independent Environments
- Manage Switchers with GitOps managed environment
- Auto Sync enables a fully integrated environment with Switcher API Management, Slack App and GitOps working simultaneously

# Integrated tests

This project does not run integration test without a valid GitOps repository settings.

In order to run integration tests locally, you need to create a valid GitOps repository with the following structure:

```bash
├── resources
│ ├── default.json (*)
```
(*) see a Switcher snapshot sample [here](https://github.com/switcherapi/switcher-gitops/blob/master/resources/default.json)

The next step is to set up PAT (Personal Access Token) for Switcher GitOps to access the repository. You can either create a fine-grained token with only the necessary permissions such as Content (Read and Write) and Metadata (Read) or use a personal token with full access.
Set up PAT (Personal Access Token) for Switcher GitOps to access the repository. You can either create a fine-grained token with only the necessary permissions such as Content (Read and Write) and Metadata (Read) or use a personal token with full access.

Once you have the token, you can set it up in the `.env.test` environment file by including the following:
```bash
GIT_USER=[YOUR_GIT_USER]
GIT_TOKEN=[YOUR_GIT_TOKEN]
GIT_TOKEN_READ_ONLY=[YOUR_GIT_TOKEN_READ_ONLY]
GIT_REPO_URL=[YOUR_GIT_REPO_URL]
GIT_BRANCH=[YOUR_GIT_BRANCH]
```

0 comments on commit 769bd6a

Please sign in to comment.