Update variable syntax #8
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: 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 GitHub Actions / Build and Push Docker ImageInvalid workflow file
|
||
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 |