소스 검색

Merge pull request #1271 from zhayujie/feat-dockerhub

feat: publish to dockerhub in github CI simultaneously
master
zhayujie GitHub 1 년 전
부모
커밋
98b8ff2fc8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1개의 변경된 파일9개의 추가작업 그리고 1개의 파일을 삭제
  1. +9
    -1
      .github/workflows/deploy-image.yml

+ 9
- 1
.github/workflows/deploy-image.yml 파일 보기

@@ -28,6 +28,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
@@ -39,7 +45,9 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: |
${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v3


Loading…
취소
저장