Skip to content

Commit

Permalink
Merge pull request #24 from paipe-labs/github_registy_image_storage
Browse files Browse the repository at this point in the history
github_registy_image_storage
  • Loading branch information
vvauijij authored Mar 25, 2024
2 parents 362cff0 + e368d42 commit 02d409f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: build and push client-node docker image to ghcr.io

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build_and_push_image:
runs-on: ubuntu-latest

# `GITHUB_TOKEN` permissions for the actions in this job
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4

- name: log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: extract metadata (tags, labels) for docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: build and push docker image
uses: docker/build-push-action@v5
with:
context: .
file: client-node-comfyui.dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 02d409f

Please sign in to comment.