Skip to content

Commit

Permalink
add new s3 bucket for mobile artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBowen committed Nov 5, 2024
1 parent 07ce9fb commit 9ada425
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ lane :simulator do
aws_s3(
access_key: ENV["AWS_ACCESS_KEY_ID"],
secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
bucket: ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"],
bucket: des-mobile-artefacts,
path: "github-actions/#{path}/#{ENV["RUN_ID"]}/",
html_in_folder: false,
upload_metadata: false,
Expand All @@ -44,7 +44,7 @@ lane :simulator do

file = "simulator/$BRANCH-#{ENV["RUN_ID"]}-APP.txt"
sh("echo $S3_IPA_OUTPUT_PATH > #{file}")
sh("aws s3 cp #{file} s3://#{ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"]}/github-actions/files/#{path}/")
sh("aws s3 cp #{file} s3://des-mobile-artefacts/github-actions/files/#{path}/")
content = sh("cat #{file}")
sh("echo '⬇️ Simulator Location: [des-#{ENV["ENVIRONMENT"]}-#{ENV["BRANCH"]}.#{ENV["RUN_ID"]}.app.zip](#{content})' >> $GITHUB_STEP_SUMMARY")
puts ENV["APP_FILE"] = content
Expand Down Expand Up @@ -86,7 +86,7 @@ lane :release_build do
aws_s3(
access_key: ENV["AWS_ACCESS_KEY_ID"],
secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"],
bucket: ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"],
bucket: des-mobile-artefacts,
path: "github-actions/#{path}/#{version}/",
html_in_folder: true,
html_file_name: "DrivingExaminerService-#{version}-#{ENV["RUN_ID"]}-#{short_hash}.html",
Expand All @@ -97,7 +97,7 @@ lane :release_build do

file = "builds/$BRANCH-#{version}.#{ENV["RUN_ID"]}-#{short_hash}-IPA.txt"
sh("echo $S3_IPA_OUTPUT_PATH > #{file}")
sh("aws s3 cp #{file} s3://#{ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"]}/github-actions/files/#{path}/")
sh("aws s3 cp #{file} s3://des-mobile-artefacts/github-actions/files/#{path}/")
content = sh("cat #{file}")
sh("echo '⬇️ Application Location: [DrivingExaminerService-#{version}-#{ENV["RUN_ID"]}-#{short_hash}.ipa](#{content})' >> $GITHUB_STEP_SUMMARY")

Expand Down

0 comments on commit 9ada425

Please sign in to comment.