Skip to content

feat: update docker-publish.yml #18

feat: update docker-publish.yml

feat: update docker-publish.yml #18

name: Publish Docker Image
on:
workflow_dispatch:
push:
branches:
- develop
env:
REGISTRY: ghcr.io
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.repository_name }}
IMAGE_NAME: ${{ env.REPO_OWNER }}/${{ env.REPO_NAME }}:develop

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

View workflow run for this annotation

GitHub Actions / Publish Docker Image

Invalid workflow file

The workflow is not valid. .github/workflows/docker-publish.yml (Line: 12, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.REPO_OWNER
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: ${{ env.IMAGE_NAME }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
dockerfile: Dockerfile.production