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 16, 2023
1 parent dfe5987 commit 9118c3c
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
if: |
(github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]') ||
(github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]')
env:
AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
AWS_REGION: us-east-1
steps:
- name: Checkout commit
uses: actions/checkout@v3
Expand All @@ -31,23 +28,14 @@ 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: ${{ runner.os }}-py-3.9.9-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg')
}}
key: ${{ runner.os }}-py-3.9-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('setup.cfg') }}
- name: Install dependencies
run: make setup
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
- name: Login to AWS ECR
uses: aws-actions/amazon-ecr-login@v1
- name: Login to ghcr.io
uses: docker/[email protected]
with:
Expand Down Expand Up @@ -76,18 +64,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: platformstorageapi
helm_charts: platform-storage

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-storage
version: ${{ needs.release.outputs.version }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 9118c3c

Please sign in to comment.