From ca0d9f65e4ee4c44949b37b00448c0e659210ad4 Mon Sep 17 00:00:00 2001 From: Dennis Trautwein Date: Wed, 4 Dec 2024 21:29:40 +0100 Subject: [PATCH] update: GitHub actions --- .github/workflows/build_push.yml | 2 +- .github/workflows/pull_request.yml | 5 ++++- .github/workflows/push_dev.yml | 3 ++- .github/workflows/push_main.yml | 8 ++++---- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 9699fd6..ad9da42 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -1,4 +1,4 @@ -name: Test, Build & Push (dev) +name: Build & Push (dev) on: workflow_call: diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index ca061c7..6b41fb8 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,7 +1,10 @@ -name: Test, Build & Push (dev) +name: Pull Request on: pull_request: + branches: + - dev + - main jobs: test: diff --git a/.github/workflows/push_dev.yml b/.github/workflows/push_dev.yml index a99bc88..b446ebd 100644 --- a/.github/workflows/push_dev.yml +++ b/.github/workflows/push_dev.yml @@ -1,4 +1,4 @@ -name: Test, Build & Push (dev) +name: Push (dev) on: workflow_dispatch: @@ -18,6 +18,7 @@ jobs: permissions: id-token: write contents: read + build_push: name: Ants uses: ./.github/workflows/build_push.yml diff --git a/.github/workflows/push_main.yml b/.github/workflows/push_main.yml index 61bc57a..cefab63 100644 --- a/.github/workflows/push_main.yml +++ b/.github/workflows/push_main.yml @@ -1,4 +1,4 @@ -name: Deployment (prod) +name: Push (prod) on: workflow_dispatch: @@ -8,14 +8,14 @@ on: jobs: test: - name: Ants + name: Deployment uses: ./.github/workflows/test.yml permissions: id-token: write contents: read build_push: - name: Ants + name: Deployment uses: ./.github/workflows/build_push.yml needs: test permissions: @@ -23,7 +23,7 @@ jobs: contents: read deploy: - name: Ants + name: Deployment uses: ./.github/workflows/deploy.yml needs: build_push permissions: