Skip to content

build image CI flow

build image CI flow #1

Workflow file for this run

name: Build and Push Docker Image and Deploy
on:
push:
branches:
- main
paths:
- 'Dockerfile'
- 'entrypoint.sh'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: set lower case owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: ghcr.io/${{ env.OWNER_LC }}/server_image:latest
- name: Trigger Deploy Workflow
uses: peter-evans/repository-dispatch@v3

Check failure on line 43 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 43
with:
event-type: deploy