Skip to content

Commit

Permalink
switch deploy to google cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zubenko committed Jan 17, 2023
1 parent f71f224 commit 8ab5866
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,15 @@ jobs:
name: Create release
needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: neuro-inc/reuse/.github/workflows/[email protected].28
uses: neuro-inc/reuse/.github/workflows/[email protected].31
with:
image: platformregistryapi
helm_charts: platform-registry

deploy_dev:
name: Deploy on dev
needs: release
uses: neuro-inc/reuse/.github/workflows/[email protected].28
uses: neuro-inc/reuse/.github/workflows/[email protected].31
with:
helm_charts: platform-registry
version: ${{ needs.release.outputs.version }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
22 changes: 9 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,12 @@ jobs:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: 3.9
- name: Cache packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
}}
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
- name: Install dependencies
run: make setup
- name: Lint
Expand All @@ -41,13 +40,12 @@ jobs:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: 3.9
- name: Cache packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
}}
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
- name: Install dependencies
run: make setup
- name: Run unit tests
Expand All @@ -65,13 +63,12 @@ jobs:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: 3.9
- name: Cache packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
}}
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
- name: Install dependencies
run: make setup
- name: Login to ghcr.io
Expand All @@ -95,13 +92,12 @@ jobs:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: 3.9
- name: Cache packages
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
}}
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
- name: Install dependencies
run: make setup
- name: Login to ghcr.io
Expand All @@ -125,7 +121,7 @@ jobs:
- name: Install python
uses: actions/setup-python@v4
with:
python-version: 3.9.9
python-version: 3.9
- name: Cache packages
uses: actions/cache@v3
with:
Expand Down
15 changes: 14 additions & 1 deletion charts/platform-registry/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@ platform:
name: platformservices-secret
key: registry_token

upstreamRegistry: {}
upstreamRegistry:
type: oauth
url: https://gcr.io
tokenUrl: https://gcr.io/v2/token
tokenService: gcr.io
tokenUsername:
value: _json_key
tokenPassword:
valueFrom:
secretKeyRef:
name: gcp-key
key: key_json
project: development-374312
maxCatalogEntries: 10000

ingress:
enabled: true
Expand Down

0 comments on commit 8ab5866

Please sign in to comment.