CI: build dev image on dev branch pushes (palette-dev deploy)
This commit is contained in:
@@ -2,7 +2,7 @@ name: CI
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main, dev]
|
||||||
tags: ['v*']
|
tags: ['v*']
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
@@ -23,8 +23,8 @@ jobs:
|
|||||||
run: go test -v ./...
|
run: go test -v ./...
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
# build & push image only on tags (releases)
|
# build & push image only on tags (releases) and dev branch (dev deploy)
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/dev'
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: [debian-latest]
|
runs-on: [debian-latest]
|
||||||
env:
|
env:
|
||||||
@@ -57,6 +57,6 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.archfox.org/poslop/palette:${{ gitea.ref_name }}
|
git.archfox.org/poslop/palette:${{ gitea.ref_name }}
|
||||||
git.archfox.org/poslop/palette:latest
|
${{ startsWith(gitea.ref, 'refs/tags/') && 'git.archfox.org/poslop/palette:latest' || '' }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|||||||
Reference in New Issue
Block a user