Skip to content

Commit

Permalink
fix(ci-cd): add secrets to ci pipelines for pushing images to contain…
Browse files Browse the repository at this point in the history
…er registries
  • Loading branch information
WarriorsSami committed Sep 21, 2024
1 parent ad3a985 commit 0ad6607
Show file tree
Hide file tree
Showing 9 changed files with 44 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/anubis-eval-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ jobs:
with:
image_name: anubis-eval
build_context: anubis-eval
secrets:
TOKEN: ${{ secrets.TOKEN }}

deploy-to-docker-hub:
needs: build
Expand All @@ -54,3 +56,6 @@ jobs:
namespace: pantheonix
repository: anubis
build_context: anubis-eval
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
7 changes: 6 additions & 1 deletion .github/workflows/dapr-config-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ jobs:
with:
image_name: asgard-dapr-config
build_context: dapr
secrets:
TOKEN: ${{ secrets.TOKEN }}

deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: pantheonix
repository: asgard-dapr
build_context: dapr
build_context: dapr
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
5 changes: 5 additions & 0 deletions .github/workflows/enki-problems-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
with:
image_name: enki-problems
build_context: enki-problems
secrets:
TOKEN: ${{ secrets.TOKEN }}

deploy-to-docker-hub:
needs: build
Expand All @@ -41,3 +43,6 @@ jobs:
namespace: pantheonix
repository: enki
build_context: enki-problems
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
5 changes: 5 additions & 0 deletions .github/workflows/eval-lb-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ jobs:
with:
image_name: asgard-eval-lb
build_context: anubis-eval/eval-lb
secrets:
TOKEN: ${{ secrets.TOKEN }}

deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: pantheonix
repository: eval-lb
build_context: anubis-eval/eval-lb
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
5 changes: 5 additions & 0 deletions .github/workflows/hermes-tests-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
with:
image_name: hermes-tests
build_context: hermes-tests
secrets:
TOKEN: ${{ secrets.TOKEN }}

deploy-to-docker-hub:
needs: build
Expand All @@ -46,3 +48,6 @@ jobs:
namespace: pantheonix
repository: hermes
build_context: hermes-tests
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
5 changes: 5 additions & 0 deletions .github/workflows/odin-gateway-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@ jobs:
with:
image_name: odin-api-gateway
build_context: odin-gateway
secrets:
TOKEN: ${{ secrets.TOKEN }}

deploy-to-docker-hub:
uses: ./.github/workflows/step-deploy-to-docker-hub.yaml
with:
namespace: pantheonix
repository: odin
build_context: odin-gateway
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

5 changes: 5 additions & 0 deletions .github/workflows/quetzalcoatl-auth-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
with:
image_name: quetzalcoatl-auth
build_context: quetzalcoatl-auth
secrets:
TOKEN: ${{ secrets.TOKEN }}

deploy-to-docker-hub:
needs: build
Expand All @@ -41,3 +43,6 @@ jobs:
namespace: pantheonix
repository: quetzalcoatl
build_context: quetzalcoatl-auth
secrets:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
5 changes: 5 additions & 0 deletions .github/workflows/step-deploy-to-docker-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
build_context:
type: string
required: true
secrets:
DOCKER_USERNAME:
required: true
DOCKER_PASSWORD:
required: true

jobs:
deploy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/step-deploy-to-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
build_context:
type: string
required: true
secrets:
TOKEN:
required: true

jobs:
deploy:
Expand Down

0 comments on commit 0ad6607

Please sign in to comment.