Skip to content

Update publish-docker-image.yml #23

Update publish-docker-image.yml

Update publish-docker-image.yml #23

name: Build and Publish Docker Image
on:
push:
branches:
- master
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
- "v[0-9]+.[0-9]+.[0-9]+-rc*" # Push events to matching v*, i.e. v1.0-rc1, v20.15.10-rc5
jobs:
setup-build-publish:
name: Setup, Build and Publish
runs-on: ubuntu-latest
environment: production
steps:
- name: Build and Push Docker Image
run: |

Check failure on line 18 in .github/workflows/publish-docker-image.yml

View workflow run for this annotation

GitHub Actions / Build and Publish Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/publish-docker-image.yml (Line: 18, Col: 12): Unrecognized named-value: 'GITHUB_SHA'. Located at position 37 within expression: github.ref == 'refs/heads/stage' && GITHUB_SHA || GITHUB_REF_NAME
echo $GITHUB_REF_NAME
echo $GITHUB_REF
echo $GITHUB_SHA
echo "Environment: ${{ github.ref == 'refs/heads/stage' && GITHUB_SHA || GITHUB_REF_NAME }}"