Skip to content

Update variable syntax #8

Update variable syntax

Update variable syntax #8

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- '*'
jobs:
build-and-push:
runs-on: ubuntu-latest
defaults:
run:
working-directory: modern
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Login to Azure Container Registry
uses: azure/docker-login@v1
with:
login-server: ${{ ACR_LOGIN_SERVER }}

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

View workflow run for this annotation

GitHub Actions / Build and Push Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/docker-image.yml (Line: 20, Col: 25): Unrecognized named-value: 'ACR_LOGIN_SERVER'. Located at position 1 within expression: ACR_LOGIN_SERVER .github/workflows/docker-image.yml (Line: 21, Col: 21): Unrecognized named-value: 'ACR_USERNAME'. Located at position 1 within expression: ACR_USERNAME
username: ${{ ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- name: Build base Docker image
run: |
docker-compose build base
- name: Push base Docker image
run: |
docker-compose push base
- name: Build GCC12 Docker image
run: |
docker-compose build gcc12
- name: Push GCC12 Docker image
run: |
docker-compose push gcc12
- name: Logout from Azure Container Registry
run: docker logout $ACR_LOGIN_SERVER