Skip to content

feat(examples): Add nginx-golang compose example #21

feat(examples): Add nginx-golang compose example

feat(examples): Add nginx-golang compose example #21

name: examples/nginx-golang
on:
repository_dispatch:
types: [core_merge]
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Everyday at 12AM
push:
branches: [main]
paths:
- 'examples/compose/nginx-golang/**'
- '.github/workflows/examples-nginx-golang.yaml'
- '!examples/compose/nginx-golang/README.md'
pull_request:
types: [opened, synchronize, reopened]
branches: [main]
paths:
- 'examples/compose/nginx-golang/**'
- '.github/workflows/examples-nginx-golang.yaml'
- '!examples/compose/nginx-golang/README.md'
jobs:
up:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: kraft via action, privileged
uses: lucaseri/kraftkit@privileged-action
with:
loglevel: debug
workdir: examples/compose/nginx-golang
runtimedir: /github/workspace/.kraftkit
privileged: true
run: |
set -xe
sudo kraft net create kraft0
- name: kraft via action, no privileged
uses: lucaseri/kraftkit@privileged-action
with:
loglevel: debug
workdir: examples/compose/nginx-golang
runtimedir: /github/workspace/.kraftkit
run: |
set -xe
sudo kraft net create kraft0