fix(ci): run build on tags (#1483)
* fix(ci): run build on tags
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
* chore: update docker warning and not push on PR
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
---------
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
| | |
| | | on: |
| | | push: |
| | | branches: [v4] |
| | | tags: ["v*"] |
| | | tags: ["v*"] |
| | | pull_request: |
| | | branches: [v4] |
| | | paths: |
| | |
| | | id: build-and-push |
| | | uses: docker/build-push-action@v6 |
| | | with: |
| | | push: true |
| | | push: ${{ github.event_name != 'pull_request' }} |
| | | build-args: | |
| | | GIT_SHA=${{ env.GITHUB_SHA }} |
| | | DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }} |
| | |
| | | FROM node:20-slim as builder |
| | | FROM node:20-slim AS builder |
| | | WORKDIR /usr/src/app |
| | | COPY package.json . |
| | | COPY package-lock.json* . |