2ed94758d8
Signed-off-by: ekinbarut <ekinbarut@gmail.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: todoapp
|
|
|
|
on:
|
|
push:
|
|
# Trigger this workflow only on commits pushed to the main branch
|
|
branches:
|
|
- main
|
|
|
|
# Dagger plan gets configured via client environment variables
|
|
env:
|
|
# This needs to be unique across all of netlify.app
|
|
APP_NAME: todoapp-dagger-europa
|
|
NETLIFY_TEAM: dagger
|
|
# Get one from https://app.netlify.com/user/applications/personal
|
|
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
|
|
# GitHub Actions friendly logs
|
|
DAGGER_LOG_FORMAT: plain
|
|
|
|
jobs:
|
|
dagger:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v2
|
|
|
|
# You need to run `dagger project init` locally before and commit the cue.mod directory to the repository with its contents
|
|
- name: Project update
|
|
uses: dagger/dagger-for-github@v2
|
|
with:
|
|
version: 0.2
|
|
# To pin external dependencies, you can use `project update github.com/[package-source]@v[n]`
|
|
args: project update
|
|
|
|
- name: Deploy to Netlify
|
|
uses: dagger/dagger-for-github@v2
|
|
# See all options at https://github.com/dagger/dagger-for-github
|
|
with:
|
|
args: do deploy
|