Skip to content

Merge pull request #9 from Silex/docker #1

Merge pull request #9 from Silex/docker

Merge pull request #9 from Silex/docker #1

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
tags:
- '*'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Log in to Docker Hub
uses: docker/login-action@master
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Docker Image
uses: docker/build-push-action@master
with:
context: .
push: true
tags: |

Check failure on line 29 in .github/workflows/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/image.yml (Line: 29, Col: 17): Unexpected symbol: '|'. Located at position 17 within expression: github.ref_name | replace('v', '')
${{ secrets.DOCKER_USERNAME }}/quasascale-backend:${{ github.ref_name }}
${{ secrets.DOCKER_USERNAME }}/quasascale-backend:${{ github.ref_name | replace('v', '') }}