Skip to content

Commit

Permalink
fix: adding github ssh rsa as trusted
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonNotJson committed Oct 2, 2023
1 parent bb9fa76 commit df7a136
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions lib/configs/amplify/build-setting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const preBuildForFeeds = {
commands: [
'eval $(ssh-agent -s)',
'ssh-add <(echo "$DEPLOY_KEY" | base64 --decode)',
'echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=" >> ~/.ssh/known_hosts',
'git submodule init',
'git submodule update --remote',
'yum -y install make nasm autoconf automake libtool dpkg pkgconfig libpng libpng-dev g++',
Expand Down
15 changes: 5 additions & 10 deletions lib/constructs/persistence/data-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,16 +255,11 @@ export class ThreadImgDataPipeline extends AbstractDataPipeline {
},
).resizeImageFunction;

const supportedExtensions = ['jpeg', 'png', 'gif', 'jpg'];

for (const ext of supportedExtensions) {
this.processor.addEventSource(
new event_sources.S3EventSource(this.dataSource, {
events: [s3.EventType.OBJECT_CREATED_PUT],
filters: [{ prefix: `*/*/image.${ext}` }],
}),
);
}
this.processor.addEventSource(
new event_sources.S3EventSource(this.dataSource, {
events: [s3.EventType.OBJECT_CREATED],
}),
);
}
}

Expand Down

0 comments on commit df7a136

Please sign in to comment.