chore: update workflows config.

This commit is contained in:
jaywcjlove 2023-06-20 23:18:58 +08:00
parent 01ec9c43de
commit b525acd107
1 changed files with 22 additions and 22 deletions

View File

@ -159,30 +159,30 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_USER }}/linux-command:${{steps.changelog.outputs.version}} tags: ${{ secrets.DOCKER_USER }}/linux-command:${{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/linux-command:latest # tags: ghcr.io/jaywcjlove/linux-command: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/linux-command:${{steps.changelog.outputs.version}} # tags: ghcr.io/jaywcjlove/linux-command:${{steps.changelog.outputs.version}}
# # Create Docker Image # # Create Docker Image
# - name: Docker login # - name: Docker login