Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PR.yaml #32

Merged
merged 9 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/actions/build-devcontainer/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ description: Create and setup devcontainer
runs:
using: "composite"
steps:
- name: size
run: |
df -H
shell: bash
- name: build the devcontainer image
run: |
docker build -t devcontainer -f .devcontainer/Dockerfile ./.devcontainer
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/PR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Main Branch PR
on:
pull_request:
branches:
- main
- feature/extract-orderstatusprovider
jobs:
Build-Code:
runs-on: ubuntu-latest
Expand All @@ -16,4 +16,4 @@ jobs:
# export of cargo path in each step is required because it is not when exported in bootstraph.sh script
- name: install cluster and workloads
run: |
docker exec devcontainer sh -c "export PATH="/root/.cargo/bin:$PATH" && cd ./workspace && make fmt && make"
docker exec devcontainer sh -c "export PATH="/root/.cargo/bin:$PATH" && cd ./workspace && make fmt && make"
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#! /bin/bash
K3DCLUSTERNAME := wasm-cluster
K3DSHIMIMAGENAME := ghcr.io/deislabs/containerd-wasm-shims/examples/k3d:v0.9.1
DOCKERDIR := ./wasm-shims/deployments/k3d
Expand Down Expand Up @@ -39,6 +40,7 @@ install_mosquitto:
helm upgrade --install mosquitto ./deployment/mosquitto --namespace mosquitto --create-namespace --wait

deploy_app: deploy_app_orderprocessor deploy_app_fulfilmentprocessor deploy_app_orderstatusprovider
rm -r target

deploy_app_orderprocessor:
@echo "Deploying order processor app..."
Expand Down
3 changes: 3 additions & 0 deletions deployment/build-deploy-workload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ docker save -o tmp/$1.tar $1:$VERSION

# import the image into the k3d cluster
k3d image import tmp/$1.tar -c $2
docker rmi $1:$VERSION
rm -r target
rm -r .spin
rm -r tmp

# replace the image in the deployment file
Expand Down
Loading