Update Deploy.yml #15
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: 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 GitHub Actions / CI/CDInvalid workflow file
|
||
GIT_COMMIT=${{GITHUB_SHA}} | ||
GIT_BRANCH=${{GITHUB_REF}} | ||
BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||