diff --git a/.github/workflows/actions/lambda/action.yml b/.github/workflows/actions/lambda/action.yml new file mode 100644 index 0000000..7c13391 --- /dev/null +++ b/.github/workflows/actions/lambda/action.yml @@ -0,0 +1,7 @@ +name: "Lambda Shared Action" +description: "Common setup for Lambda jobs" +runs: + using: "composite" + steps: + - run: echo "This is the lambda shared action" + shell: bash \ No newline at end of file diff --git a/.github/workflows/lambda_main.yml b/.github/workflows/lambda_main.yml index 4d2a9ec..e9fc185 100644 --- a/.github/workflows/lambda_main.yml +++ b/.github/workflows/lambda_main.yml @@ -20,18 +20,20 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + - name: Run lambda shared action + uses: ./.github/workflows/actions/lambda - - name: AWS credentials - uses: aws-actions/configure-aws-credentials@v4 - with: - # as of 14/07/2025 it'll be using user:Junte's keys - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_REGION }} + # - name: AWS credentials + # uses: aws-actions/configure-aws-credentials@v4 + # with: + # # as of 14/07/2025 it'll be using user:Junte's keys + # aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + # aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # aws-region: ${{ secrets.AWS_REGION }} - - name: Log in to Amazon ECR - id: login-ecr - uses: aws-actions/amazon-ecr-login@v2 + # - name: Log in to Amazon ECR + # id: login-ecr + # uses: aws-actions/amazon-ecr-login@v2 # - name: Build, tag, and push Docker image to ECR # env: