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:
2
.github/workflows/docs.yml
vendored
2
.github/workflows/docs.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
- "apps/docs/**"
|
||||
- ".github/workflows/docs.yml"
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [dev]
|
||||
paths:
|
||||
- "apps/docs/**"
|
||||
- ".github/workflows/docs.yml"
|
||||
|
||||
11
.github/workflows/relay.yml
vendored
11
.github/workflows/relay.yml
vendored
@@ -8,7 +8,7 @@ on:
|
||||
- "packages/relay/**"
|
||||
- ".github/workflows/relay.yml"
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [dev, production]
|
||||
paths:
|
||||
- "containers/relay.Containerfile"
|
||||
- ".github/workflows/relay.yml"
|
||||
@@ -45,9 +45,9 @@ jobs:
|
||||
load: true
|
||||
tags: nestri:relay
|
||||
|
||||
build-docker-main:
|
||||
name: Build image on main
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
build-and-push-docker:
|
||||
name: Build and push image
|
||||
if: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/production' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -73,7 +73,8 @@ jobs:
|
||||
#tag on release, and a nightly build for 'dev'
|
||||
tags: |
|
||||
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={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
11
.github/workflows/runner.yml
vendored
11
.github/workflows/runner.yml
vendored
@@ -12,7 +12,7 @@ on:
|
||||
schedule:
|
||||
- cron: 7 0 * * 1,3,6 # Regularly to keep that build cache warm
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [dev, production]
|
||||
paths:
|
||||
- "containers/runner.Containerfile"
|
||||
- ".github/workflows/runner.yml"
|
||||
@@ -66,9 +66,9 @@ jobs:
|
||||
cache-from: type=gha,mode=max
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
build-docker-main:
|
||||
name: Build image on main
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
build-and-push-docker:
|
||||
name: Build and push image
|
||||
if: ${{ github.ref == 'refs/heads/production' || github.ref == 'refs/heads/dev' }}
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -94,7 +94,8 @@ jobs:
|
||||
#tag on release, and a nightly build for 'dev'
|
||||
tags: |
|
||||
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={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
2
.github/workflows/www.yml
vendored
2
.github/workflows/www.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
- "apps/www/**"
|
||||
- ".github/workflows/www.yml"
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [dev]
|
||||
paths:
|
||||
- "apps/www/**"
|
||||
- ".github/workflows/www.yml"
|
||||
|
||||
Reference in New Issue
Block a user