-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ivan Zubenko
committed
Jan 16, 2023
1 parent
dfe5987
commit 9118c3c
Showing
1 changed file
with
4 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | ||
|
@@ -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 }} |