Skip to content

Commit

Permalink
Merge pull request #7 from peterkimzz/self_hosted
Browse files Browse the repository at this point in the history
Self hosted
  • Loading branch information
peterkimzz authored Aug 14, 2020
2 parents 73cff37 + 969f987 commit ca91acd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
5 changes: 2 additions & 3 deletions github/.workflows/tester.yml → .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on: push

jobs:
deployment:
# needs: before_deployment
name: App Container Image Build && Deploy
name: Library test by self-hosting
runs-on: self-hosted

steps:
Expand All @@ -15,9 +14,9 @@ jobs:
- name: AWS SSM Send Command
uses: ./
with:
aws-region: ap-northeast-2
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
instance-ids: ${{ secrets.INSTANCE_ID }}
comment: aws-ssm-send-command testing
working-directory: /home/ubuntu/
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ jobs:
uses: peterkimzz/[email protected]
id: ssm
with:
aws-region: ${{ secrets.AWS_REGION }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-west-1 # adjust to your region
instance-ids: ${{ secrets.INSTANCE_ID }}

working-directory: /home/ubuntu/application
command: ls -al
comment: Hello world!
Expand Down
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ function SanitizeInputs() {
const _outputS3BucketName = "your-s3-bucket-name";
const _outputS3KeyPrefix = "your-s3-bucket-directory-name";

console.log(_instanceIds);
console.log(_instanceIds.split(/\n/));

return {
accessKeyId: _accessKeyId,
secretAccessKey: _secretAccessKey,
Expand Down

0 comments on commit ca91acd

Please sign in to comment.