Skip to content

Update Deploy.yml

Update Deploy.yml #15

Workflow file for this run

name: CI/CD
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Login to azure'
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_RBAC_CREDENTIALS }}
- name: 'Login to private container registry'
uses: Azure/docker-login@v1
with:
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
login-server: ${{ secrets.REGISTRY_URL }}
- name: 'Setup docker build'
uses: docker/setup-buildx-action@v3
- name: 'Build docker image'
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
push: true
tags: latest
build-args: |

Check failure on line 37 in .github/workflows/Deploy.yml

View workflow run for this annotation

GitHub Actions / CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/Deploy.yml (Line: 37, Col: 21): Unrecognized named-value: 'GITHUB_SHA'. Located at position 1 within expression: GITHUB_SHA
GIT_COMMIT=${{GITHUB_SHA}}
GIT_BRANCH=${{GITHUB_REF}}
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')