feat: update docker-publish.yml #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Publish Docker ImageInvalid workflow file
|
||
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 |