Skip to content

Commit

Permalink
chore: Update golang.yml workflow to copy golang-build-deploy.sh from…
Browse files Browse the repository at this point in the history
… the correct directory
  • Loading branch information
tanjilbhuiyan committed May 16, 2024
1 parent b913895 commit a836d4a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion golang-build-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ while read line; do
# Replace '/' with '_'
result=$(echo "$zip_name" | tr '/' '_')

echo "$result"
printf '%s\n' "$result"


# Check if the directory exists
Expand All @@ -53,6 +53,8 @@ while read line; do
echo "$build_output"
# Zip the bootstrap file
zip -q "$result.zip" bootstrap
ls -la
pwd
echo "Bootstrap file zipped as bootstrap.zip"
echo "Uploading to AWS S3"
aws s3 cp "$result.zip" "s3://$S3_BUCKET_NAME/$result.zip"
Expand Down
2 changes: 1 addition & 1 deletion lambda/github-lambda-test-1/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ func handler(ctx context.Context) (string, error) {

func main() {
lambda.Start(handler)
}
}
2 changes: 1 addition & 1 deletion lambda/github-lambda-test-2/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ func handler(ctx context.Context) (string, error) {

func main() {
lambda.Start(handler)
}
}
2 changes: 1 addition & 1 deletion lambda/payments/gateways/stripe/confirm/src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ func handler(ctx context.Context) (string, error) {

func main() {
lambda.Start(handler)
}
}

0 comments on commit a836d4a

Please sign in to comment.