Skip to content

Commit

Permalink
Add initial K8s Github Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Oct 24, 2024
1 parent 5a8c6b8 commit fbfa3ba
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/k8s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Optionally debug via SSH
# Ref: https://fleetdm.com/engineering/tips-for-github-actions-usability
#
# To use this step uncomment and place anywhere in the build steps. The build will pause on this step and
# output a ssh address associated with the Github action worker. Helpful for debugging build steps and
# and intermediary files/artifacts.
#
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

name: K8s Test

on:
push:
pull_request:

jobs:
build:
uses: ./.github/workflows/build.yml

test:
# needs: build
runs-on: ubuntu-latest
steps:
- name: Install k3d
run: |
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
# kubectl get nodes

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
2 changes: 1 addition & 1 deletion config/kubernetes-executor-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
containers:
- name: funnel-worker-{{.TaskId}}
# TODO: Should this be configurable?
image: development
image: quay.io/ohsu-comp-bio/funnel:development
imagePullPolicy: Always
command: ["/bin/sh", "-c"]
args: {{.Command}}
Expand Down
3 changes: 2 additions & 1 deletion config/kubernetes-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
restartPolicy: Never
containers:
- name: funnel-worker-{{.TaskId}}
image: quay.io/ohsu-comp-bio/funnel:{{.Image}}
# TODO: Should this be configurable?
image: quay.io/ohsu-comp-bio/funnel:development
imagePullPolicy: Always
args:
- "worker"
Expand Down

0 comments on commit fbfa3ba

Please sign in to comment.