Skip to content

DevOps Pipeline

DevOps Pipeline #2

Workflow file for this run

name: DevOps Pipeline
on:
workflow_dispatch:
push:
branches:
- 'deploy'
jobs:
docker-build-and-push:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{secrets.DOCKERHUB_USERNAME}}
password: ${{secrets.DOCKERHUB_TOKEN}}
-
name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: mosazhaw/node-web-app:latest
azure-deploy:
permissions:
contents: none
runs-on: ubuntu-latest
needs: docker

Check failure on line 36 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / DevOps Pipeline

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 36, Col: 12): Job 'azure-deploy' depends on unknown job 'docker'.
steps:
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
images: 'mosazhaw/node-web-app:latest'