Carpeta Apagado agregada #8
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: Docker CI | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Docker build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build docker image | |
run: | | |
docker build --platform linux --tag aminespinoza/websiteplatzi:latest -f CI/Dockerfile . | |
- name: Publish docker image | |
run: | | |
docker push aminespinoza/websiteplatzi:latest | |
- name: App service auth | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: 'amineswebapp ' | |
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | |
images: 'aminespinoza/websiteplatzi:latest' |