Skip to content

Commit ec8933f

Browse files
committed
fix ci/cd issues
1 parent 4869954 commit ec8933f

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

.github/workflows/build-deploy.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ jobs:
4444
run: |
4545
pip install "poetry==1.8.2"
4646
47-
- name: Serverless Deploy
48-
uses: serverless/github-action@v4
47+
- name: Deploy to AWS
48+
run: ./node_modules/.bin/sls deploy --stage ${{ github.event.inputs.stage }}
4949
env:
50-
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
51-
with:
52-
args: deploy --stage ${{ github.event.inputs.stage }}
50+
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
File renamed without changes.

launched.AppleCollector.plist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<string>--schedule-location-fetching</string>
1313
</array>
1414
<key>StandardErrorPath</key>
15-
<string>/dev/null</string>
15+
<string>/Users/spaceinvader/Documents/AppleCollector/logs/error.log</string>
1616
<key>StandardOutPath</key>
17-
<string>/dev/null</string>
17+
<string>/Users/spaceinvader/Documents/AppleCollector/logs/output.log</string>
1818
<key>StartInterval</key>
1919
<integer>900</integer>
2020
<key>WorkingDirectory</key>
21-
<string>/Users/${USER}/Documents/AppleCollector</string>
21+
<string>/Users/spaceinvader/Documents/AppleCollector</string>
2222
</dict>
2323
</plist>

serverless.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ provider:
55
runtime: python3.12
66
stage: ${opt:stage, 'prod'}
77
region: eu-central-1
8+
layers:
9+
- Ref: PythonRequirementsLambdaLayer
810
environment:
911
STAGE: ${self:provider.stage}
1012
QUEUE_URL: !GetAtt LocationsQueue.QueueUrl
@@ -111,10 +113,19 @@ resources:
111113

112114
custom:
113115
pythonRequirements:
114-
usePoetry: false
116+
usePoetry: true
115117
dockerizePip: true
118+
slim: true
119+
layer:
120+
name: ${self:provider.stage}-${self:service}-layer
121+
compatibleRuntimes:
122+
- python3.12
123+
compatibleArchitectures:
124+
- x86_64
125+
allowedAccounts:
126+
- '*'
116127

117128
plugins:
118-
- serverless-offline
119129
- serverless-python-requirements
130+
- serverless-offline
120131
- serverless-cloudside-plugin

0 commit comments

Comments
 (0)