add reminder channels to bot configuration #209
This file contains hidden or 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: Build and Deploy Staging | |
| on: | |
| push: | |
| branches: | |
| - 'staging' | |
| workflow_dispatch: | |
| jobs: | |
| Build-and-Push: | |
| runs-on: ubuntu-latest | |
| if: | | |
| !(github.event.head_commit.author.email == '29139614+renovate[bot]@users.noreply.github.com' || | |
| github.event.head_commit.committer.email == '29139614+renovate[bot]@users.noreply.github.com') | |
| steps: | |
| - name: Checkout master | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3 | |
| - name: Log in to container registry | |
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build and push image | |
| uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7 | |
| with: | |
| push: true | |
| tags: | | |
| ghcr.io/vzauartcc/api:${{ github.sha }} | |
| ghcr.io/vzauartcc/api:latest | |
| ghcr.io/vzauartcc/api:buildcache | |
| cache-from: type=registry,ref=ghcr.io/vzauartcc/api:buildcache | |
| cache-to: type=registry,ref=ghcr.io/vzauartcc/api:buildcache,mode=max | |
| Deploy-to-Staging: | |
| needs: Build-and-Push | |
| environment: staging | |
| runs-on: ubuntu-latest | |
| if: | | |
| !(github.event.head_commit.author.email == '29139614+renovate[bot]@users.noreply.github.com' || | |
| github.event.head_commit.committer.email == '29139614+renovate[bot]@users.noreply.github.com') | |
| steps: | |
| - name: Initialize doctl | |
| uses: digitalocean/action-doctl@v2 | |
| with: | |
| token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }} | |
| - name: Log into K8s cluster | |
| run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 zau-k8s | |
| - name: Deploy image to cluster | |
| run: kubectl set image deployment/api-dev api-dev=ghcr.io/vzauartcc/api:${{ github.sha }} --record -n zau-staging-web-stack | |
| - name: Verify deployment | |
| run: kubectl rollout status deployment/api-dev -n zau-staging-web-stack |