Skip to content

Commit

Permalink
CI: remove redundant env vars from ci pipelines (#36)
Browse files Browse the repository at this point in the history
* fix(release-please): use custom github pat

* fix(ci-cd): remove redundant env vars from ci pipelines
  • Loading branch information
WarriorsSami authored Sep 21, 2024
1 parent 09d78a4 commit 645bfe0
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 78 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/anubis-eval-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ on:
tags:
- "anubis/**"

env:
NAMESPACE: pantheonix
REPOSITORY: anubis
IMAGE_NAME: anubis-eval
BUILD_CONTEXT: anubis-eval

jobs:
build:
name: Build and Test Anubis Eval Microservice
Expand Down Expand Up @@ -50,13 +44,13 @@ jobs:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}
image_name: anubis-eval
build_context: anubis-eval

deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
repository: ${{ env.REPOSITORY }}
build_context: ${{ env.BUILD_CONTEXT }}
namespace: pantheonix
repository: anubis
build_context: anubis-eval
16 changes: 5 additions & 11 deletions .github/workflows/dapr-config-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,16 @@ on:
tags:
- "dapr/**"

env:
NAMESPACE: pantheonix
REPOSITORY: asgard-dapr
IMAGE_NAME: asgard-dapr-config
BUILD_CONTEXT: dapr

jobs:
deploy-to-ghcr:
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}
image_name: asgard-dapr-config
build_context: dapr

deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
repository: ${{ env.REPOSITORY }}
build_context: ${{ env.BUILD_CONTEXT }}
namespace: pantheonix
repository: asgard-dapr
build_context: dapr
16 changes: 5 additions & 11 deletions .github/workflows/enki-problems-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ on:
tags:
- "enki/**"

env:
NAMESPACE: pantheonix
REPOSITORY: enki
IMAGE_NAME: enki-problems
BUILD_CONTEXT: enki-problems

jobs:
build:
name: Build and Test Enki Problems Microservice
Expand All @@ -37,13 +31,13 @@ jobs:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}
image_name: enki-problems
build_context: enki-problems

deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
repository: ${{ env.REPOSITORY }}
build_context: ${{ env.BUILD_CONTEXT }}
namespace: pantheonix
repository: enki
build_context: enki-problems
16 changes: 5 additions & 11 deletions .github/workflows/eval-lb-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,16 @@ on:
tags:
- "eval-lb/**"

env:
NAMESPACE: pantheonix
REPOSITORY: eval-lb
IMAGE_NAME: asgard-eval-lb
BUILD_CONTEXT: anubis-eval/eval-lb

jobs:
deploy-to-ghcr:
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}
image_name: asgard-eval-lb
build_context: anubis-eval/eval-lb

deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
repository: ${{ env.REPOSITORY }}
build_context: ${{ env.BUILD_CONTEXT }}
namespace: pantheonix
repository: eval-lb
build_context: anubis-eval/eval-lb
17 changes: 5 additions & 12 deletions .github/workflows/hermes-tests-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ on:
tags:
- "hermes/**"

env:
NAMESPACE: pantheonix
REPOSITORY: hermes
IMAGE_NAME: hermes-tests
BUILD_CONTEXT: hermes-tests
HERMES_CONFIG: ${{ secrets.HERMES_CONFIG }}

jobs:
build:
name: Build and Test Hermes Tests Microservice
Expand Down Expand Up @@ -43,13 +36,13 @@ jobs:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}
image_name: hermes-tests
build_context: hermes-tests

deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
repository: ${{ env.REPOSITORY }}
build_context: ${{ env.BUILD_CONTEXT }}
namespace: pantheonix
repository: hermes
build_context: hermes-tests
16 changes: 5 additions & 11 deletions .github/workflows/odin-gateway-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,17 @@ on:
tags:
- "odin/**"

env:
NAMESPACE: pantheonix
REPOSITORY: odin
IMAGE_NAME: odin-api-gateway
BUILD_CONTEXT: odin-gateway

jobs:
deploy-to-ghcr:
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}
image_name: odin-api-gateway
build_context: odin-gateway

deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
repository: ${{ env.REPOSITORY }}
build_context: ${{ env.BUILD_CONTEXT }}
namespace: pantheonix
repository: odin
build_context: odin-gateway

16 changes: 5 additions & 11 deletions .github/workflows/quetzalcoatl-auth-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ on:
tags:
- "quetzalcoatl/**"

env:
NAMESPACE: pantheonix
REPOSITORY: quetzalcoatl
IMAGE_NAME: quetzalcoatl-auth
BUILD_CONTEXT: quetzalcoatl-auth

jobs:
build:
name: Build and Test Quetzalcoatl Auth Microservice
Expand All @@ -37,13 +31,13 @@ jobs:
needs: build
uses: ./.github/workflows/step-deploy-to-ghcr.yaml
with:
image_name: ${{ env.IMAGE_NAME }}
build_context: ${{ env.BUILD_CONTEXT }}
image_name: quetzalcoatl-auth
build_context: quetzalcoatl-auth

deploy-to-docker-hub:
needs: build
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: ${{ env.NAMESPACE }}
repository: ${{ env.REPOSITORY }}
build_context: ${{ env.BUILD_CONTEXT }}
namespace: pantheonix
repository: quetzalcoatl
build_context: quetzalcoatl-auth

0 comments on commit 645bfe0

Please sign in to comment.