Skip to content

Commit

Permalink
chore: Update build image action
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxuan6 committed Dec 16, 2024
1 parent 7dbc984 commit f44e255
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: tag name
id: tags
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
echo "输出版本号:$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Build and publish image
uses: VaultVulp/gp-docker-action@1.6.0
uses: xiaoxuan6/docker-build-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
image-name: chinese-holidays-api
additional-image-tags: "${{ steps.tags.outputs.VERSION }}"
custom-args: --platform=linux/arm64,linux/amd64
extract-git-tag: true
image-platform: linux/arm64,linux/amd64

goreleaser:
runs-on: ubuntu-latest
Expand All @@ -39,4 +32,4 @@ jobs:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f44e255

Please sign in to comment.