Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

build(deps): bump the npm_and_yarn group across 3 directories with 5 … #111

build(deps): bump the npm_and_yarn group across 3 directories with 5 …

build(deps): bump the npm_and_yarn group across 3 directories with 5 … #111

name: Deploy Delivery Microservice CI/CD
on:
push:
branches: [ dev, main ]
permissions:
id-token: write
contents: read
jobs:
deploy:

Check failure on line 12 in .github/workflows/delivery-deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy Delivery Microservice CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/delivery-deploy.yml (Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
runs-on: ubuntu-latest
environment: dev
needs: [ build, test, publish ]
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Install kubectl
run: |
sudo snap install kubectl --classic
- name: 'Az CLI login'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Set up Terraform
uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.0.5
- name: Terraform init
run: |
cd ./terraform &&
terraform init
- name: Terraform apply
run: |
cd ./terraform &&
terraform apply -auto-approve
- name: Terraform apply delivery
run: |
cd ../services/delivery/terraform &&
terraform apply -auto-approve
- name: Configure kubectl
run: |
az aks get-credentials --resource-group rg-goodfood-dev --name aks-goodfood-dev
- name: apply k8s manifests
run: |
cd .. &&
kubectl create namespace goodfood &&
kubectlcrete kubectl apply -f ./k8s