You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/cicd/github-actions.md
+58-10Lines changed: 58 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,54 @@ You can use GitHub Actions to build or publish container images for your OpenFaa
4
4
5
5
If you'd like to deploy the function, check out a more comprehensive example of how to log in and deploy in [Serverless For Everyone Else](https://store.openfaas.com/l/serverless-for-everyone-else).
The `--filter release-promoter` line can be removed to build all functions in the stack.yml.
52
+
53
+
When multiple functions are available in the stack.yaml file you can add `--parallel` to speed up the build by building multiple functions at once.
54
+
7
55
## Publish multiple functions
8
56
9
57
We will deploy alexellis' repository called [alexellis/autoscaling-functions](https://github.com/alexellis/autoscaling-functions). It contains multiple functions which can be deployed as a group.
@@ -20,10 +68,7 @@ name: publish
20
68
21
69
on:
22
70
push:
23
-
branches:
24
-
- '*'
25
-
pull_request:
26
-
branches:
71
+
tags:
27
72
- '*'
28
73
29
74
permissions:
@@ -40,7 +85,9 @@ jobs:
40
85
with:
41
86
fetch-depth: 1
42
87
- name: Get faas-cli
43
-
run: curl -sLSf https://cli.openfaas.com | sudo sh
The Publish functions step uses [environment substitution](/reference/yaml/#yaml-environment-variable-substitution) to set the owner and tag for the image.
0 commit comments