Skip to content

Add Markdown formatting to code blocks #16

Add Markdown formatting to code blocks

Add Markdown formatting to code blocks #16

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types: [published]
workflow_dispatch:
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: jordan-dalby/bytestash
jobs:
docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
if: github.event_name == 'release' && github.event.action == 'published'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
tags: |

Check failure on line 37 in .github/workflows/docker-build.yml

View workflow run for this annotation

GitHub Actions / Build and Push Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/docker-build.yml (Line: 37, Col: 17): Unexpected symbol: '+'. Located at position 40 within expression: github.event.release.tag_name || 'pr-' + github.sha
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name || 'pr-' + github.sha }}