Skip to content

Commit

Permalink
yml
Browse files Browse the repository at this point in the history
  • Loading branch information
solita-nhuttu committed Feb 6, 2024
1 parent 622a95b commit 8ec5951
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 78 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/main_3tee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,41 @@ on:

jobs:
build:
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to registry
uses: docker/login-action@v2
with:
registry: https://nhuttu.azurecr.io/
username: ${{ secrets.AzureAppService_ContainerUsername_ec143f4c1c1341d9b7ed9f4d03b7576e }}
password: ${{ secrets.AzureAppService_ContainerPassword_e2e30df56695481091b1d101c74cc631 }}
- name: Log in to registry
uses: docker/login-action@v2
with:
registry: https://nhuttu.azurecr.io/
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD}}

- name: Build and push container image to registry
uses: docker/build-push-action@v3
with:
push: true
tags: nhuttu.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_ec143f4c1c1341d9b7ed9f4d03b7576e }}/webimage:${{ github.sha }}
file: ./Dockerfile
- name: Build and push container image to registry
uses: docker/build-push-action@v3
with:
push: true
tags: nhuttu.azurecr.io/${{ secrets.ACR_USERNAME }}/webimage:${{ github.sha }}
file: ./Dockerfile

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'production'
name: "production"
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: '3tee'
slot-name: 'production'
publish-profile: ${{ secrets.AzureAppService_PublishProfile_c210f6050fd843ef9e2f56cd720db044 }}
images: 'nhuttu.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_ec143f4c1c1341d9b7ed9f4d03b7576e }}/webimage:${{ github.sha }}'
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: "3tee"
slot-name: "production"
publish-profile: ${{ secrets.ACR_PUBLISHPROFILE }}
images: "nhuttu.azurecr.io/${{ secrets.ACR_USERNAME }}/webimage:${{ github.sha }}"
53 changes: 0 additions & 53 deletions .github/workflows/main_eeeq.yml

This file was deleted.

0 comments on commit 8ec5951

Please sign in to comment.