Skip to content

Commit

Permalink
fix: ci
Browse files Browse the repository at this point in the history
  • Loading branch information
daflyinbed committed May 1, 2024
1 parent e8141af commit da6a3ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: deploy

on:
push:
tags: ["v*.*.*"]
tags: ["v*.*.*-*"]

jobs:
deploy:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
registry.cn-shanghai.aliyuncs.com/prts/mw
ghcr.io/mooncellwiki/mw
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{raw}}
type=sha
- name: Build and push Docker image
Expand Down Expand Up @@ -69,3 +69,4 @@ jobs:
push: true
tags: ${{ steps.ng_meta.outputs.tags }}
labels: ${{ steps.ng_meta.outputs.labels }}
build-args: VERSION=${{ github.ref_name }}
3 changes: 2 additions & 1 deletion .github/workflows/nginx.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM ghcr.io/mooncellwiki/mw:latest as builder
ARG VERSION
FROM ghcr.io/mooncellwiki/mw:VERSION as builder
FROM nginx:1.25
COPY --from=builder /var/www/html/ /var/www/html/

0 comments on commit da6a3ef

Please sign in to comment.