diff options
-rw-r--r-- | .github/workflows/deploy-digitalocean.yml | 30 | ||||
-rw-r--r-- | .github/workflows/discord-closed-issues.yml | 17 |
2 files changed, 17 insertions, 30 deletions
diff --git a/.github/workflows/deploy-digitalocean.yml b/.github/workflows/deploy-digitalocean.yml deleted file mode 100644 index c97cbdd8..00000000 --- a/.github/workflows/deploy-digitalocean.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: deploy-digitalocean - -on: - workflow_dispatch: -# push: -# branches: [ main ] -# paths: kubernetes/* - -jobs: - deploy: - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - - name: Checkout repo - uses: actions/checkout@v2 - - - name: Install doctl - uses: digitalocean/action-doctl@v2 - with: - token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} - - - name: Setup DigitalOcean kubeconfig - run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 bro-cluster - - - name: Deploy to DigitalOcean Kubernetes - run: kubectl apply -f kubernetes/server.yml - - - name: Verify deployment - run: kubectl rollout status --namespace seven-wonders deployment/seven-wonders diff --git a/.github/workflows/discord-closed-issues.yml b/.github/workflows/discord-closed-issues.yml new file mode 100644 index 00000000..789f0818 --- /dev/null +++ b/.github/workflows/discord-closed-issues.yml @@ -0,0 +1,17 @@ +name: discord-closed-issues + +on: + issues: + types: + - closed + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Send closed issue notif + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_SEVEN_WONDERS }} + uses: Ilshidur/action-discord@0.3.0 + with: + args: '[Issue #{{ EVENT_PAYLOAD.issue.id }}]({{ EVENT_PAYLOAD.issue.url }}) closed: {{ EVENT_PAYLOAD.issue.title }}' |