mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 00:05:36 +02:00
✅ ci: Update workflows to use dev
This commit is contained in:
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- "apps/docs/**"
|
- "apps/docs/**"
|
||||||
- ".github/workflows/docs.yml"
|
- ".github/workflows/docs.yml"
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [dev]
|
||||||
paths:
|
paths:
|
||||||
- "apps/docs/**"
|
- "apps/docs/**"
|
||||||
- ".github/workflows/docs.yml"
|
- ".github/workflows/docs.yml"
|
||||||
@@ -37,4 +37,4 @@ jobs:
|
|||||||
workingDirectory: "apps/docs"
|
workingDirectory: "apps/docs"
|
||||||
command: pages deploy ./dist --project-name=${{ vars.CF_DOCS_PAGES_PROJECT_NAME }} --commit-dirty=true
|
command: pages deploy ./dist --project-name=${{ vars.CF_DOCS_PAGES_PROJECT_NAME }} --commit-dirty=true
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
|||||||
13
.github/workflows/relay.yml
vendored
13
.github/workflows/relay.yml
vendored
@@ -8,7 +8,7 @@ on:
|
|||||||
- "packages/relay/**"
|
- "packages/relay/**"
|
||||||
- ".github/workflows/relay.yml"
|
- ".github/workflows/relay.yml"
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [dev, production]
|
||||||
paths:
|
paths:
|
||||||
- "containers/relay.Containerfile"
|
- "containers/relay.Containerfile"
|
||||||
- ".github/workflows/relay.yml"
|
- ".github/workflows/relay.yml"
|
||||||
@@ -45,9 +45,9 @@ jobs:
|
|||||||
load: true
|
load: true
|
||||||
tags: nestri:relay
|
tags: nestri:relay
|
||||||
|
|
||||||
build-docker-main:
|
build-and-push-docker:
|
||||||
name: Build image on main
|
name: Build and push image
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/production' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -73,7 +73,8 @@ jobs:
|
|||||||
#tag on release, and a nightly build for 'dev'
|
#tag on release, and a nightly build for 'dev'
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=nightly,enable={{is_default_branch}}
|
type=raw,value=nightly,enable={{is_default_branch}}
|
||||||
type=ref,event=tag
|
type=raw,value={{branch}}
|
||||||
|
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'production') }}
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
@@ -85,4 +86,4 @@ jobs:
|
|||||||
context: ./
|
context: ./
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
11
.github/workflows/runner.yml
vendored
11
.github/workflows/runner.yml
vendored
@@ -12,7 +12,7 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: 7 0 * * 1,3,6 # Regularly to keep that build cache warm
|
- cron: 7 0 * * 1,3,6 # Regularly to keep that build cache warm
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [dev, production]
|
||||||
paths:
|
paths:
|
||||||
- "containers/runner.Containerfile"
|
- "containers/runner.Containerfile"
|
||||||
- ".github/workflows/runner.yml"
|
- ".github/workflows/runner.yml"
|
||||||
@@ -66,9 +66,9 @@ jobs:
|
|||||||
cache-from: type=gha,mode=max
|
cache-from: type=gha,mode=max
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
build-docker-main:
|
build-and-push-docker:
|
||||||
name: Build image on main
|
name: Build and push image
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
if: ${{ github.ref == 'refs/heads/production' || github.ref == 'refs/heads/dev' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -94,7 +94,8 @@ jobs:
|
|||||||
#tag on release, and a nightly build for 'dev'
|
#tag on release, and a nightly build for 'dev'
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=nightly,enable={{is_default_branch}}
|
type=raw,value=nightly,enable={{is_default_branch}}
|
||||||
type=ref,event=tag
|
type=raw,value={{branch}}
|
||||||
|
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'production') }}
|
||||||
type=semver,pattern={{version}}
|
type=semver,pattern={{version}}
|
||||||
type=semver,pattern={{major}}.{{minor}}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
type=semver,pattern={{major}}
|
type=semver,pattern={{major}}
|
||||||
|
|||||||
4
.github/workflows/www.yml
vendored
4
.github/workflows/www.yml
vendored
@@ -6,7 +6,7 @@ on:
|
|||||||
- "apps/www/**"
|
- "apps/www/**"
|
||||||
- ".github/workflows/www.yml"
|
- ".github/workflows/www.yml"
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [dev]
|
||||||
paths:
|
paths:
|
||||||
- "apps/www/**"
|
- "apps/www/**"
|
||||||
- ".github/workflows/www.yml"
|
- ".github/workflows/www.yml"
|
||||||
@@ -37,4 +37,4 @@ jobs:
|
|||||||
workingDirectory: "apps/www"
|
workingDirectory: "apps/www"
|
||||||
command: pages deploy ./dist --project-name=${{ vars.CF_WWW_PAGES_PROJECT_NAME }} --commit-dirty=true
|
command: pages deploy ./dist --project-name=${{ vars.CF_WWW_PAGES_PROJECT_NAME }} --commit-dirty=true
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user