Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 7, 2023
1 parent c4f7c43 commit d992418
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,15 +254,18 @@ jobs:

- name: Print tag version
run: |
echo "Tag version: ${GITHUB_REF#refs/tags/}"
echo "Tag version: ${GITHUB_REF#refs/tags/v}"
- name: Set version variable
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV

- name: Build and push image:tags
uses: docker/build-push-action@v3
with:
push: true
context: .
platforms: linux/amd64,linux/arm64
tags: ${{ secrets.DOCKER_USER }}/rust-cn-document-for-docker:${{steps.changelog.outputs.version}}
tags: ${{ secrets.DOCKER_USER }}/rust-cn-document-for-docker:${{ env.VERSION }}

- name: Modify README.md
uses: jaywcjlove/github-action-modify-file-content@main
Expand Down

0 comments on commit d992418

Please sign in to comment.