Europa docs: From local dev to CI environment doc page
The todoapp example contains a Netlify plan which uses the latest dagger additions: do & Client API. We are thinking of merging the examples repository into this one to make working with this easier. This is a step in that direction. We are not using the yarn package so that we can revert https://github.com/dagger/dagger/pull/1673 without breaking this implementation. The GitHub Action is WIP, we will continue with that tomorrow: https://github.com/dagger/dagger-for-github/issues/24 Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
This commit is contained in:
42
.github/workflows/todoapp.yml
vendored
Normal file
42
.github/workflows/todoapp.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: todoapp
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- '.github/workflows/todoapp.yml'
|
||||
- 'pkg/universe.dagger.io/examples/todoapp/**'
|
||||
|
||||
env:
|
||||
# This needs to be unique across all of Netlify
|
||||
APP_NAME: todoapp-dagger-europa
|
||||
NETLIFY_TEAM: blocklayer
|
||||
# https://app.netlify.com/user/applications/personal
|
||||
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
|
||||
DAGGER_LOG_FORMAT: plain
|
||||
|
||||
jobs:
|
||||
dagger:
|
||||
name: "Deploy todoapp to Netlify"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: "Clone repository"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
# TODO: maybe use Dagger action post 0.2.0-beta.1
|
||||
- name: "Setup Go"
|
||||
uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: 1.16
|
||||
|
||||
- name: "Install dev Dagger"
|
||||
run: |
|
||||
make dagger
|
||||
|
||||
- name: "Dagger"
|
||||
run: |
|
||||
cd pkg/universe.dagger.io/examples/todoapp
|
||||
${{ github.workspace }}/cmd/dagger/dagger do deploy
|
Reference in New Issue
Block a user