Skip to content

Commit d84089f

Browse files
authored
GHA migration deploy (#49)
1 parent 4450622 commit d84089f

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/deploy.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
export LC_ALL=C.UTF-8 # needed by SAM
44
export LANG=C.UTF-8 # needed by SAM
55
export AWS_DEFAULT_REGION=us-east-1 # needed by SAM
6-
76
export APPLICATION="UvaSoftware-Scanii-Lambda"
87
export ACCOUNT_ID=${ACCOUNT_ID}
98

10-
# installing AWS CLI
11-
apt-get install -qqy nodejs npm zip python3-pip &>/dev/null
12-
pip3 install awscli aws-sam-cli &>/dev/null
13-
149
VERSION=$( node -pe "require('./package.json').version")
1510

1611
# building

.github/workflows/master.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,21 @@ jobs:
77
if: "!contains(github.event.commits[0].message, '[ci skip]')"
88
name: Deploy
99
runs-on: ubuntu-latest
10-
container:
11-
image: debian:10
1210
steps:
1311
- uses: actions/checkout@v2
14-
- name: Install dependencies
15-
run: apt-get update -qq && apt-get install -qqy git unzip ssh ca-certificates tar gzip nodejs
12+
- name: Use Node.js 12.x
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12.x
16+
17+
- name: Configure AWS credentials
18+
uses: aws-actions/configure-aws-credentials@v1
19+
with:
20+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
21+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
22+
aws-region: us-east-1
23+
1624
- name: Deploy
25+
env:
26+
AWS_ACCOUNT_ID: ${{ secrets.AWS_PROD_ACCOUNT_ID }}
1727
run: bash ./.github/workflows/deploy.sh

0 commit comments

Comments
 (0)