Skip to content

Commit 8ab5866

Browse files
author
Ivan Zubenko
committed
switch deploy to google cloud
1 parent f71f224 commit 8ab5866

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,15 @@ jobs:
4848
name: Create release
4949
needs: test
5050
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
51-
uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v0.0.28
51+
uses: neuro-inc/reuse/.github/workflows/release-service.yaml@v0.0.31
5252
with:
5353
image: platformregistryapi
5454
helm_charts: platform-registry
5555

5656
deploy_dev:
5757
name: Deploy on dev
5858
needs: release
59-
uses: neuro-inc/reuse/.github/workflows/deploy-dev.yaml@v0.0.28
59+
uses: neuro-inc/reuse/.github/workflows/deploy-dev.yaml@v0.0.31
6060
with:
6161
helm_charts: platform-registry
6262
version: ${{ needs.release.outputs.version }}
63-
secrets:
64-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
65-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

.github/workflows/test.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ jobs:
1515
- name: Install python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.9.9
18+
python-version: 3.9
1919
- name: Cache packages
2020
uses: actions/cache@v3
2121
with:
2222
path: ~/.cache/pip
23-
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
24-
}}
23+
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
2524
- name: Install dependencies
2625
run: make setup
2726
- name: Lint
@@ -41,13 +40,12 @@ jobs:
4140
- name: Install python
4241
uses: actions/setup-python@v4
4342
with:
44-
python-version: 3.9.9
43+
python-version: 3.9
4544
- name: Cache packages
4645
uses: actions/cache@v3
4746
with:
4847
path: ~/.cache/pip
49-
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
50-
}}
48+
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
5149
- name: Install dependencies
5250
run: make setup
5351
- name: Run unit tests
@@ -65,13 +63,12 @@ jobs:
6563
- name: Install python
6664
uses: actions/setup-python@v4
6765
with:
68-
python-version: 3.9.9
66+
python-version: 3.9
6967
- name: Cache packages
7068
uses: actions/cache@v3
7169
with:
7270
path: ~/.cache/pip
73-
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
74-
}}
71+
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
7572
- name: Install dependencies
7673
run: make setup
7774
- name: Login to ghcr.io
@@ -95,13 +92,12 @@ jobs:
9592
- name: Install python
9693
uses: actions/setup-python@v4
9794
with:
98-
python-version: 3.9.9
95+
python-version: 3.9
9996
- name: Cache packages
10097
uses: actions/cache@v3
10198
with:
10299
path: ~/.cache/pip
103-
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
104-
}}
100+
key: py-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
105101
- name: Install dependencies
106102
run: make setup
107103
- name: Login to ghcr.io
@@ -125,7 +121,7 @@ jobs:
125121
- name: Install python
126122
uses: actions/setup-python@v4
127123
with:
128-
python-version: 3.9.9
124+
python-version: 3.9
129125
- name: Cache packages
130126
uses: actions/cache@v3
131127
with:

charts/platform-registry/values-dev.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,20 @@ platform:
77
name: platformservices-secret
88
key: registry_token
99

10-
upstreamRegistry: {}
10+
upstreamRegistry:
11+
type: oauth
12+
url: https://gcr.io
13+
tokenUrl: https://gcr.io/v2/token
14+
tokenService: gcr.io
15+
tokenUsername:
16+
value: _json_key
17+
tokenPassword:
18+
valueFrom:
19+
secretKeyRef:
20+
name: gcp-key
21+
key: key_json
22+
project: development-374312
23+
maxCatalogEntries: 10000
1124

1225
ingress:
1326
enabled: true

0 commit comments

Comments
 (0)