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

* Upgrade CI

* Keep lint and test on tags

* Keep actions/checkout@v3

* Consider CI on branches named v*

* Fix write packages

* Distinct Elixir CI and PR Build

* Rename build

* Fix type

* Add workflow_dispatch

* Add timeout to prevent stuck jobs

* Add actions for buildx and merge

* fix username ?

* Add grafana images from PR

* fix typo

* Finih merge action refactoring

* Exclude PRs related to .github from auto-run

* Don't try to auth on DockerHub when we can't

* tmp allow myself to execute

* Update ghcr_build.yml to be able to write on packages from public fork

* Revert ghcr_build.yml

* Update ghcr_build.yml

* Update to build on source repo

* Update ghcr_build.yml to test

* Use correct repo with REGISTRY_IMAGE

* Update ghcr_build.yml

* Update ghcr_build.yml

* Update ghcr_build.yml

* Update ghcr_build.yml

* Update ghcr_build.yml

* Use dynamic variables to work in all repos

* Purge in source repo

* Update ghcr_build.yml

* Update ghcr_build.yml

* Update ghcr_build.yml

* Update action.yaml

* Update ghcr_build.yml

* Update buildx.yml

* Update action.yaml

* Fix vars

* Trace digests

* Update action.yml

* Update action.yml

* Fix typo

* Fox repo name

* Update buildx.yml

* Update action.yaml

* Fix repository name

* Run on any branch pushed

* Exclude PRs related to .github from auto-run

* Add buildjet dependency

* lint

* lint actions

* fix: links in dashboards

---------

Co-authored-by: Julien <julien@citio.digital>
This commit is contained in:
jlestel
2023-11-17 02:37:04 +01:00
committed by GitHub
parent d7f6349cb2
commit b65b3f3992
10 changed files with 308 additions and 95 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: >-