fix(daemonset): replicate daemonset to all nodes #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to DigitalOcean & Mirror to GitHub | |
env: | |
MIRROR_SSH: [email protected]:EpitechPromo2026/B-DOP-500-NCE-5-1-bernstein-gwenael.hubler.git | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
# deploy: | |
# name: Deploy to DigitalOcean | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout Repository | |
# uses: actions/checkout@v4 | |
# - name: Install doctl | |
# uses: digitalocean/action-doctl@v2 | |
# with: | |
# token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
# - name: Save DigitalOcean kubeconfig with short-lived credentials | |
# run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 ${{ secrets.CLUSTER_NAME }} | |
# - name: Apply all Kubernetes configuration files in the current directory | |
# run: kubectl apply -f . | |
mirror: | |
name: Mirror repository | |
permissions: | |
contents: read | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Mirror repository | |
uses: pixta-dev/repository-mirroring-action@v1 | |
with: | |
target_repo_url: | |
${{ env.MIRROR_SSH }} | |
ssh_private_key: | |
${{ secrets.GIT_SSH_PRIVATE_KEY }} |