Skip to content

Commit

Permalink
ci: docker 镜像增加 ghcr.io 源
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Jun 6, 2024
1 parent 2a45922 commit 77520ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ jobs:
id: metadata
uses: docker/metadata-action@v5
with:
# 发布到 hub.docker.com 和 ghcr.io
images: |
${{ env.REPO }}
ghcr.io/${{ github.repository }}
tags: |
type=raw,value=latest,enable=true
type=raw,value={{date 'YYYY-MM-DD'}},enable=true
Expand All @@ -75,11 +77,9 @@ jobs:
context: .
file: ./Dockerfile
push: true
# tags: ${{ env.REPO }}:${{ env.TAG }},${{ env.REPO }}:latest
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
# cache-from: type=gha,scope=docker-release
# cache-to: type=gha,mode=max,scope=docker-release
platforms: linux/amd64,linux/arm/v7,linux/arm64
- name: Deploy demo
run: curl -X GET -L --user ${{ secrets.JENKINS_DEMO_TOKEN }} "${{ secrets.JENKINS_DEMO_URL }}/buildWithParameters?token=${{ secrets.JENKINS_DEMO_JOB_TOKEN }}&DOCKER_IMAGE=${{ env.REPO }}:${{ env.TAG }}"
- name: Deploy to Jenkins
Expand Down

0 comments on commit 77520ce

Please sign in to comment.