Skip to content

Update build.yaml

Update build.yaml #14

Workflow file for this run

name: "Build Images"
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Test Workflow'
jobs:
environment: dev

Check failure on line 13 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yaml

Invalid workflow file

You have an error in your yaml syntax on line 13
build:
runs-on: ubuntu-latest
name: Image Build
timeout-minutes: 45
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ${{ vars.WS_DOCKER_REGISTRY }}
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set commit SHA as code version
run: echo "CODE_VERSION=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- name: Build the stack
run: docker compose -f docker-compose.build.yml --env-file tdei_uw.env build --build-arg CODE_VERSION=${CODE_VERSION}
- name: Push the stack to ACR
run: docker compose --env-file tdei_uw.env push