diff options
| author | 2020-11-14 22:51:04 +0000 | |
|---|---|---|
| committer | 2020-11-14 22:51:04 +0000 | |
| commit | b2521ad090cf899ae1af9a1c17ce26074a5b80f7 (patch) | |
| tree | 139103d9cbd5a988e7b6536cce8a255da1aa8245 | |
| parent | Add Kubernetes deployment manifest (diff) | |
Merge build and deploy stages
| -rw-r--r-- | .github/workflows/lint-build-deploy.yaml | 21 | 
1 files changed, 2 insertions, 19 deletions
| diff --git a/.github/workflows/lint-build-deploy.yaml b/.github/workflows/lint-build-deploy.yaml index 733328d4..7ce5d9a3 100644 --- a/.github/workflows/lint-build-deploy.yaml +++ b/.github/workflows/lint-build-deploy.yaml @@ -94,8 +94,8 @@ jobs:          env:            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -  build-and-push: -    name: Build and Push to Container Repositories +  build-and-deploy: +    name: Build and Deploy to Kubernetes      needs: lint      if: github.event_name != 'pull_request_target' && github.ref == 'refs/heads/master'      runs-on: ubuntu-latest @@ -143,23 +143,6 @@ jobs:              pythondiscord/seasonalbot:latest              pythondiscord/seasonalbot:${{ steps.sha_tag.outputs.tag }} -  deploy: -    name: Deploy to the Kubernetes cluster -    needs: build-and-push -    if: github.event_name != 'pull_request_target' && github.ref == 'refs/heads/master' -    runs-on: ubuntu-latest - -    steps: -      - name: Checkout code -        uses: actions/checkout@v2 - -      # Create a commit SHA-based tag for the container repositories -      - name: Create SHA Container Tag -        id: sha_tag -        run: | -          tag=$(cut -c 1-7 <<< $GITHUB_SHA) -          echo "::set-output name=tag::$tag" -        - name: Authenticate with Kubernetes          uses: azure/k8s-set-context@v1          with: | 
