mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 00:16:46 +00:00
Various fixes to make the github actions workflow pass
Signed-off-by: Akos Veres <veres@akos.me>
This commit is contained in:
parent
ae909c8df4
commit
1862c0e1f5
1
.github/workflows/build.yaml
vendored
1
.github/workflows/build.yaml
vendored
@ -23,6 +23,7 @@ jobs:
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: ${{ matrix.go-version }}
|
||||
|
||||
- name: test
|
||||
run: make test
|
||||
- name: dist
|
||||
|
8
.github/workflows/publish.yaml
vendored
8
.github/workflows/publish.yaml
vendored
@ -26,6 +26,8 @@ jobs:
|
||||
run: make test
|
||||
- name: dist
|
||||
run: make dist
|
||||
- name: hashgen
|
||||
run: make hashgen
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
@ -46,6 +48,7 @@ jobs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./bin/faasd
|
||||
asset_name: faasd
|
||||
asset_content_type: application/binary
|
||||
- name: Upload Release faasd-armhf
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
@ -54,6 +57,7 @@ jobs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./bin/faasd-armhf
|
||||
asset_name: faasd-armhf
|
||||
asset_content_type: application/binary
|
||||
- name: Upload Release faasd-arm64
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
@ -62,6 +66,7 @@ jobs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./bin/faasd-arm64
|
||||
asset_name: faasd-arm64
|
||||
asset_content_type: application/binary
|
||||
- name: Upload Release faasd.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
@ -70,6 +75,7 @@ jobs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./bin/faasd.sha256
|
||||
asset_name: faasd.sha256
|
||||
asset_content_type: text/plain
|
||||
- name: Upload Release faasd-armhf.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
@ -78,6 +84,7 @@ jobs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./bin/faasd-armhf.sha256
|
||||
asset_name: faasd-armhf.sha256
|
||||
asset_content_type: text/plain
|
||||
- name: Upload Release faasd-arm64.sha256
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
@ -86,3 +93,4 @@ jobs:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./bin/faasd-arm64.sha256
|
||||
asset_name: faasd-arm64.sha256
|
||||
asset_content_type: text/plain
|
||||
|
6
Makefile
6
Makefile
@ -35,8 +35,8 @@ prepare-test:
|
||||
sudo /sbin/sysctl -w net.ipv4.conf.all.forwarding=1
|
||||
sudo mkdir -p /opt/cni/bin
|
||||
curl -sSL https://github.com/containernetworking/plugins/releases/download/$(CNI_VERSION)/cni-plugins-linux-$(ARCH)-$(CNI_VERSION).tgz | sudo tar -xz -C /opt/cni/bin
|
||||
sudo cp $(GOPATH)/src/github.com/openfaas/faasd/bin/faasd /usr/local/bin/
|
||||
cd $(GOPATH)/src/github.com/openfaas/faasd/ && sudo /usr/local/bin/faasd install
|
||||
sudo cp bin/faasd /usr/local/bin/
|
||||
sudo /usr/local/bin/faasd install
|
||||
sudo systemctl status -l containerd --no-pager
|
||||
sudo journalctl -u faasd-provider --no-pager
|
||||
sudo systemctl status -l faasd-provider --no-pager
|
||||
@ -58,5 +58,5 @@ test-e2e:
|
||||
/usr/local/bin/faas-cli remove figlet
|
||||
sleep 3
|
||||
/usr/local/bin/faas-cli list
|
||||
sleep 1
|
||||
sleep 3
|
||||
/usr/local/bin/faas-cli logs figlet --follow=false | grep Forking
|
||||
|
Loading…
x
Reference in New Issue
Block a user