Skip to content

Commit

Permalink
feat(ci): add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Apr 24, 2024
1 parent 0d41345 commit 10425c9
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches:
- staging
env:
DEPLOYMENT: ticket-office
DEPLOYMENT_NAMESPACE: ticket-office
# DEPLOYMENT: ticket-office
# DEPLOYMENT_NAMESPACE: ticket-office
DEPLOYMENT_URL: https://ticket-office.staging.dataesr.ovh
MM_NOTIFICATION_CHANNEL: bots

Expand Down Expand Up @@ -39,23 +39,23 @@ jobs:
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
docker push $IMAGE_ID:staging
# deploy:
# name: 💭 Update staging deployment
# runs-on: ubuntu-latest
# needs: publish-ghcr
# steps:
# - name: Deploy to Cluster
# id: kubectl-deploy
# uses: dataesr/[email protected]
# env:
# KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DOAD_STAGING }}
# with:
# namespace: ${{ env.DEPLOYMENT_NAMESPACE }}
# restart: ${{ env.DEPLOYMENT }}
deploy:
name: 💭 Update staging deployment
runs-on: ubuntu-latest
needs: publish-ghcr
steps:
- name: Deploy to Cluster
id: kubectl-deploy
uses: dataesr/[email protected]
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DOAD_STAGING }}
with:
namespace: ${{ env.DEPLOYMENT_NAMESPACE }}
restart: ${{ env.DEPLOYMENT }}

notify:
name: 📢 Notify in mattermost channel
needs: publish-ghcr
needs: deploy
if: always()
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 10425c9

Please sign in to comment.