Skip to content

ISSUE-47 - Adding PR Verification #24

ISSUE-47 - Adding PR Verification

ISSUE-47 - Adding PR Verification #24

Workflow file for this run

name: QA Deploy
on:
pull_request:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
docker-push-qa:
needs: release
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: PR Title Verify
uses: actions/action-pr-title@master
with:
regex: '([A-Z]+-[0-9]*) -.*'
allowed_prefixes: 'ISSUE'
prefix_case_sensitive: true
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: AMD64 - Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ $GITHUB_SHA }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:qa

Check failure on line 48 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / QA Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/pr.yml (Line: 48, Col: 17): Unexpected symbol: '$GITHUB_SHA'. Located at position 1 within expression: $GITHUB_SHA
labels: ${{ steps.meta.outputs.labels }}