Update upload-artifact to v4 #54
Workflow file for this run
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: Test GHCR & AKS Connections | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build_and_push_image: | |
name: Build and Push Image | |
uses: ./.github/workflows/build_and_push_image.yaml | |
with: | |
repo_name: docker-alpine | |
commit_id: ${{ github.sha }} | |
test_aks_connection: | |
name: Test AKS Connection | |
needs: build_and_push_image | |
uses: ./.github/workflows/deploy_app.yaml | |
with: | |
app_name: alpine-ci-test | |
repo_name: docker-alpine | |
commit_id: ${{ github.sha }} | |
environment: testing | |
deploy_check: false | |
secrets: | |
creds: ${{ secrets.AZURE_AKS }} | |
cleanup: | |
runs-on: ubuntu-latest | |
needs: test_aks_connection | |
steps: | |
- uses: azure/login@v2 | |
with: | |
creds: ${{ secrets.AZURE_AKS }} | |
- uses: azure/aks-set-context@v3 | |
with: | |
resource-group: kubernetes | |
cluster-name: microservices | |
- name: Delete test pod | |
run: | | |
kubectl delete pod alpine-ci-test |