Skip to content

Commit

Permalink
Merge pull request #10 from kense-lab/action/docker-image
Browse files Browse the repository at this point in the history
chore: use docker hub repository
  • Loading branch information
kense-lab authored Jan 9, 2024
2 parents b53319e + 24e7f23 commit c8ffee6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ on:
types: [ published ]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME: 'samepaage/open-assistant-api'

jobs:
build-and-push:
Expand All @@ -29,15 +28,14 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
type=ref,event=branch
Expand Down

0 comments on commit c8ffee6

Please sign in to comment.