Skip to content

Update latest-docker-image-publish.yml #4

Update latest-docker-image-publish.yml

Update latest-docker-image-publish.yml #4

name: Publish Latest Docker Image from develop branch
on:
workflow_dispatch:
push:
branches:
- develop
env:
REGISTRY: ghcr.io
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.repository_name }}
IMAGE_NAME: ${{ github.repository_owner }}/${{ github.repository_name }}:develop
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