doc: Update ci.yml

This commit is contained in:
小弟调调 2023-09-18 17:29:49 +08:00 committed by GitHub
parent 7597799323
commit 34f6bba4a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,30 +146,30 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: wcjiang/reference:${{steps.changelog.outputs.version}} tags: wcjiang/reference:${{steps.changelog.outputs.version}}
# Create Docker Image in Github # # Create Docker Image in Github
- name: Login to the GitHub Container Registry # - name: Login to the GitHub Container Registry
uses: docker/login-action@v2 # uses: docker/login-action@v2
with: # with:
registry: ghcr.io # registry: ghcr.io
username: ${{ github.actor }} # username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} # password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image:latest # - name: Build and push image:latest
uses: docker/build-push-action@v3 # uses: docker/build-push-action@v3
with: # with:
push: true # push: true
context: . # context: .
platforms: linux/amd64,linux/arm64 # platforms: linux/amd64,linux/arm64
tags: ghcr.io/jaywcjlove/reference:latest # tags: ghcr.io/jaywcjlove/reference:latest
- name: Build and push image:tags # - name: Build and push image:tags
uses: docker/build-push-action@v3 # uses: docker/build-push-action@v3
if: steps.create_tag.outputs.successful # if: steps.create_tag.outputs.successful
with: # with:
push: true # push: true
context: . # context: .
platforms: linux/amd64,linux/arm64 # platforms: linux/amd64,linux/arm64
tags: ghcr.io/jaywcjlove/reference:${{steps.changelog.outputs.version}} # tags: ghcr.io/jaywcjlove/reference:${{steps.changelog.outputs.version}}
# # Create Docker Image in Github # # Create Docker Image in Github
# - name: Login to GitHub registry # - name: Login to GitHub registry