-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (32 loc) · 1.12 KB
/
create-executor-plugin.yml
File metadata and controls
36 lines (32 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Builds the executor plugin
on:
workflow_call:
inputs:
container_image:
required: true
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: azure/setup-kubectl@v3
- name: Install Argo Workflows CLI
run: |
curl -sSL https://github.com/argoproj/argo-workflows/releases/download/v3.3.9/argo-linux-amd64.gz | gunzip > /usr/local/bin/argo-linux-amd64
mv /usr/local/bin/argo-linux-amd64 /usr/local/bin/argo
chmod +x /usr/local/bin/argo
- uses: actions/checkout@v2
- name: Build Argo Executor Plugin
run: |
cd argo-plugin
echo '[{"op": "replace", "path": "/spec/sidecar/container/image", "value": "${{ inputs.container_image }}"}]' > image.json
kubectl kustomize . > plugin_with_image.yaml
mv plugin_with_image.yaml plugin.yaml
argo executor-plugin build .
- name: Store the YAML as an artifact
uses: actions/upload-artifact@v3
with:
name: argo-executor-plugin
path: argo-plugin/wasm-executor-plugin-configmap.yaml
retention-days: 7
if-no-files-found: error