Skip to content

Commit

Permalink
update ci to copy multiple files to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
libracoder committed Jul 28, 2023
1 parent 1427da6 commit dd03c1c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main-crossplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
env:
required: true
type: string

permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -71,6 +72,15 @@ jobs:
run: ls -R
working-directory: ${{ steps.download.outputs.download-path }}

- name: Push function to Bucket
run: |
cd ${{ github.workspace }}/dist
cd ${{ github.workspace }}/dist
for name in ${{ inputs.function_names }}
do
aws s3 cp "${name}_lambda.zip" "s3://${{ inputs.env }}-lykon-lambdas/${name}/function.zip"
done
# aws s3 cp ${{ inputs.function_name }}_lambda.zip s3://${{ inputs.env }}-lykon-lambdas/${{ inputs.function_name }}/function.zip


- uses: hashicorp/setup-terraform@v1
Expand Down

0 comments on commit dd03c1c

Please sign in to comment.