Skip to content

added build pipeline #2

added build pipeline

added build pipeline #2

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
env:
DOCKER_USERNAME: nivezra
jobs:
build-client:
runs-on: ubuntu-latest
env:
DOCKER_REPO: $DOCKER_USERNAME/super-bulb-client
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ DOCKER_USERNAME }}

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

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 22, Col: 21): Unrecognized named-value: 'DOCKER_USERNAME'. Located at position 1 within expression: DOCKER_USERNAME
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker build and push
uses: docker/build-push-action@v4
with:
context: ./client
push: true
tags: $DOCKER_REPO:latest