Skip to content

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

feat(examples): Add nginx-golang compose example

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

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: Compose up nginx-golang
run: |
set -xe
curl --proto '=https' --tlsv1.2 -sSf https://get.kraftkit.sh > script.sh
chmod +x script.sh
sudo ./script.sh -y
sudo kraft compose up -d
working-directory: examples/compose/nginx-golang