Skip to content

Commit

Permalink
Containers
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricioveronez committed May 8, 2023
1 parent 272991d commit c2b315a
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/azure-webapps-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,14 @@ jobs:
npm run test --if-present
working-directory: ./src

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3

- uses: azure/docker-login@v1
with:
name: node-app
path: ./src
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build . -t fabricioveronez/conversao-temperatura:${{ github.sha }}
docker push fabricioveronez/conversao-temperatura:${{ github.sha }}
deploy:
Expand All @@ -66,14 +69,6 @@ jobs:
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: node-app

- name: npm install, build, and test
run: |
ls -l

# - uses: azure/login@v1
# with:
Expand All @@ -85,4 +80,4 @@ jobs:
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
images: 'fabricioveronez/conversao-temperatura:${{ github.sha }}'

0 comments on commit c2b315a

Please sign in to comment.