[CI] Build PR images on GHCR (#3445)

* Upgrade CI

* Tmp Test

* Test tmp

* Test master

* Distinct cache by branch

* Correct version name

* Dynamic dockerhub push

* correct cache name

---------

Co-authored-by: Julien <julien@citio.digital>
This commit is contained in:
jlestel
2023-11-21 09:41:08 +01:00
committed by GitHub
parent d095ca6868
commit eadf08261f
7 changed files with 314 additions and 89 deletions

View File

@@ -2,8 +2,14 @@ name: Elixir CI
on:
push:
paths:
- "**/*"
- "!.github/**" # Important: Exclude PRs related to .github from auto-run
pull_request:
branches: [ "master" ]
branches: ["master"]
paths:
- "**/*"
- "!.github/**" # Important: Exclude PRs related to .github from auto-run
jobs:
lint:
@@ -124,7 +130,7 @@ jobs:
services:
db:
image: postgres:15
ports: [ "5432:5432" ]
ports: ["5432:5432"]
env:
POSTGRES_PASSWORD: postgres
options: >-