Add sending URL #39
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
| # This is a basic workflow to help you get started with Actions | |
| name: Push to Docker and deploy to AKS | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Login to Docker | |
| uses: docker/login-action@v1 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - uses: actions/checkout@v2 | |
| # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
| - name: Build and push | |
| id: docker_build | |
| uses: docker/build-push-action@v2 | |
| with: | |
| context: ./src/ | |
| file: ./src/Dockerfile | |
| push: true | |
| tags: cfe84/${{ secrets.DOCKER_IMAGE_NAME}}:${{ github.sha }},cfe84/${{ secrets.DOCKER_IMAGE_NAME}}:latest | |
| # - name: Set AKS context | |
| # uses: azure/aks-set-context@v1 | |
| # with: | |
| # # create with `az ad sp create-for-rbac --sdk-auth --name drop-deploy` | |
| # creds: '${{ secrets.AZURE_CREDENTIALS }}' | |
| # cluster-name: ${{ secrets.AZURE_CLUSTER_NAME }} | |
| # resource-group: ${{ secrets.AZURE_RESOURCE_GROUP }} | |
| # - name: Deploy to kubernetes | |
| # run: | | |
| # helm template ./chart --set hostname=${{ secrets.HOSTNAME }} --set imageVersion=${{ github.sha }} | kubectl apply -f - |