Commit 763d7f8 1 parent 9c757a3 commit 763d7f8 Copy full SHA for 763d7f8
File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,11 @@ jobs:
115
115
- name : Build serverless function zip
116
116
run : |
117
117
make ci-build-serverless-function
118
- cp ./cloud_function.zip /tmp/cloud_function.zip
119
118
- name : Upload artifact
120
119
uses : actions/upload-artifact@v4
121
120
with :
122
121
name : cloud_function_zip
123
- path : /tmp /cloud_function.zip
122
+ path : . /cloud_function.zip
124
123
update-cloud-function :
125
124
runs-on : ubuntu-latest
126
125
env :
@@ -141,12 +140,7 @@ jobs:
141
140
- name : Upload function zip
142
141
run : |
143
142
ARCHIVE_SIZE=$(stat -c %s /tmp/cloud_function.zip)
144
-
145
- PRESIGNED_URL=$(curl -X GET -H "X-Auth-Token: $SCW_SECRET_KEY" \
146
- "https://api.scaleway.com/functions/v1beta1/regions/${{ env.SCW_REGION }}/functions/$SCW_FUNCTION_ID/upload-url?content_length=$ARCHIVE_SIZE" | jq ."url")
147
-
148
- curl -H "Content-Type: application/octet-stream" --upload-file /tmp/cloud_function.zip \
149
- -H "Content-Length: $ARCHIVE_SIZE" $PRESIGNED_URL
143
+ echo $ARCHIVE_SIZE
150
144
- name : Deploy function
151
145
run : |
152
146
curl -X POST \
You can’t perform that action at this time.
0 commit comments