Skip to content

Commit

Permalink
revert()
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermake committed Nov 18, 2024
1 parent 5138165 commit 28cc2d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dev-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,18 @@ jobs:

deploy:
name: Deploy to AWS
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container: amazon/aws-cli
environment: development
needs: build

steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}
node-version: 16

- name: Download src
uses: actions/download-artifact@v4
Expand All @@ -59,14 +58,14 @@ jobs:
invalidate-cache:
name: Invalidate cache
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container: amazon/aws-cli
environment: development
needs: deploy

steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/prod-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
# Only tags which match the protected tag pattern will trigger this workflow
tags:
- v*.*.*

env:
BUCKET_NAME: web.nolus.io
CLOUDFRONT_ID: E1Y2X46MD29C6M
Expand All @@ -17,7 +18,7 @@ jobs:
name: Build static files
runs-on: ubuntu-latest
container: node:20.9.0

steps:
- uses: actions/checkout@v3

Expand All @@ -27,14 +28,14 @@ jobs:
npm run build
- name: Archive src
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: src
path: dist/

deploy:
name: Deploy to AWS
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container: amazon/aws-cli
environment: production
needs: build
Expand All @@ -46,9 +47,9 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ env.AWS_REGION }}

- name: Download src
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: src
path: dist/
Expand All @@ -59,7 +60,7 @@ jobs:
invalidate-cache:
name: Invalidate cache
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
container: amazon/aws-cli
environment: production
needs: deploy
Expand Down

0 comments on commit 28cc2d7

Please sign in to comment.