feat: implements docker credentials and ci

This commit is contained in:
2025-11-07 17:52:52 -03:00
parent bbe5420893
commit bfba489065
2 changed files with 27 additions and 4 deletions

View File

@@ -2,11 +2,11 @@ name: remote ssh command
on:
repository_dispatch:
types: [deploy-prod]
types:
- deploy
push:
branches:
- main
- staging
jobs:
deploy:
@@ -14,13 +14,19 @@ jobs:
environment: ${{ github.ref_name == 'main' && 'prod' || 'staging' }}
runs-on: ubuntu-latest
timeout-minutes: 30
env:
NAMESPACE: ${{ vars.NAMESPACE }}
steps:
- name: Set Kubernetes Context
uses: azure/k8s-set-context@v1
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
kubeconfig: ${{ secrets.PORTFOLIO_KUBECONFIG }}
- name: Configures GHCR credentials
run: |
echo ${{ secrets.GHCR_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Execute deploy
run: |