This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/.github/workflows/todoapp.yml

79 lines
2.3 KiB
YAML
Raw Normal View History

name: todoapp
on:
push:
# Trigger for new commits to any branch ONLY IF
# they introduce changes in the following paths:
branches:
paths:
- '.github/workflows/todoapp.yml'
- 'pkg/universe.dagger.io/examples/todoapp/**'
env:
# ⚠️ APP_NAME must be unique across all of Netlify ⚠️
# The deploy action will fail with a curl error if this is not the case
# TODO: make app name optional in the Netlify package and generate one by default
APP_NAME: todoapp-dagger-europa
# Set this to your Netlify team:
NETLIFY_TEAM: blocklayer
# Configure NETLIFY_TOKEN as a GitHub Actions secret after you create one via:
# https://app.netlify.com/user/applications/personal
NETLIFY_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
# GitHub Actions friendly logs
DAGGER_LOG_FORMAT: plain
jobs:
dagger-dev:
# a.k.a. Did we break anything?
name: Deploy with dagger dev
runs-on: ubuntu-latest
steps:
- name: Clone repository
2023-09-14 02:58:45 +02:00
uses: actions/checkout@v4
# this repository has many commits,
# we only care about the last one
with:
fetch-depth: 0
# We want to test with the current dev version of Dagger,
# so we need to install Go AND
# building a dev version of Dagger from source
- name: Setup Go
2023-09-14 02:58:45 +02:00
uses: actions/setup-go@v4
with:
go-version: 1.16
- name: Build dev version of Dagger
run: |
make dagger
- name: dagger do deploy
run: |
cd pkg/universe.dagger.io/examples/todoapp
${{ github.workspace }}/cmd/dagger/dagger do deploy
dagger-0-2-x:
# a.k.a. Does it still work?
name: Deploy with dagger 0.2.x last release
runs-on: ubuntu-latest
steps:
- name: Clone repository
2023-09-14 02:58:45 +02:00
uses: actions/checkout@v4
# this repository has many commits,
# we only care about the last one
with:
fetch-depth: 0
- name: dagger do deploy
# https://github.com/dagger/dagger-for-github
2023-09-14 02:58:45 +02:00
uses: dagger/dagger-for-github@v4
with:
# Use latest Dagger 0.2.x release
version: 0.2
workdir: pkg/universe.dagger.io/examples/todoapp
# To pin external dependencies, use `project update github.com/[package-source]@v[n]`
cmds: |
project update
do deploy