diff options
-rw-r--r-- | .github/workflows/lint-build-deploy.yaml | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/.github/workflows/lint-build-deploy.yaml b/.github/workflows/lint-build-deploy.yaml index f7ee9e2..b70dccf 100644 --- a/.github/workflows/lint-build-deploy.yaml +++ b/.github/workflows/lint-build-deploy.yaml @@ -120,35 +120,35 @@ jobs: build-args: | git_sha=${{ github.sha }} - # build: - # environment: production - # if: github.event.workflow_run.conclusion == 'success' - # name: Build & Push - # runs-on: ubuntu-latest - - # steps: - # - name: Create SHA Container Tag - # id: sha_tag - # run: | - # tag=$(cut -c 1-7 <<< $GITHUB_SHA) - # echo "::set-output name=tag::$tag" - - # - name: Checkout code - # uses: actions/checkout@v2 - # with: - # repository: python-discord/kubernetes - # token: ${{ secrets.REPO_TOKEN }} - - # - name: Authenticate with Kubernetes - # uses: azure/k8s-set-context@v1 - # with: - # method: kubeconfig - # kubeconfig: ${{ secrets.KUBECONFIG }} - - # - name: Deploy to Kubernetes - # uses: Azure/k8s-deploy@v1 - # with: - # manifests: | - # king-arthur/deployment.yaml - # images: 'ghcr.io/python-discord/king-arthur:${{ steps.sha_tag.outputs.tag }}' - # kubectl-version: 'latest' + build: + environment: production + if: github.event.workflow_run.conclusion == 'success' + name: Build & Push + runs-on: ubuntu-latest + + steps: + - name: Create SHA Container Tag + id: sha_tag + run: | + tag=$(cut -c 1-7 <<< $GITHUB_SHA) + echo "::set-output name=tag::$tag" + + - name: Checkout code + uses: actions/checkout@v2 + with: + repository: python-discord/kubernetes + token: ${{ secrets.REPO_TOKEN }} + + - name: Authenticate with Kubernetes + uses: azure/k8s-set-context@v1 + with: + method: kubeconfig + kubeconfig: ${{ secrets.KUBECONFIG }} + + - name: Deploy to Kubernetes + uses: Azure/k8s-deploy@v1 + with: + manifests: | + king-arthur/deployment.yaml + images: 'ghcr.io/python-discord/king-arthur:${{ steps.sha_tag.outputs.tag }}' + kubectl-version: 'latest' |