Skip to content

added build pipeline #6

added build pipeline

added build pipeline #6

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: ${{ env.DOCKER_USERNAME }}/super-bulb-client

Check failure on line 14 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: 14, Col: 20): Unrecognized named-value: 'env'. Located at position 1 within expression: env.DOCKER_USERNAME
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker build and push
uses: docker/build-push-action@v4
with:
context: ./client
push: true
tags: ${{ env.DOCKER_REPO}}:latest