Skip to content

Commit

Permalink
fix(ci): run build on tags (#1483)
Browse files Browse the repository at this point in the history
* fix(ci): run build on tags

Signed-off-by: Aaron Pham <[email protected]>

* chore: update docker warning and not push on PR

Signed-off-by: Aaron Pham <[email protected]>

---------

Signed-off-by: Aaron Pham <[email protected]>
  • Loading branch information
aarnphm authored Oct 7, 2024
1 parent 313cef6 commit 66d7dd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker build & push image
on:
push:
branches: [v4]
tags: ["v*"]
tags: ["v*"]
pull_request:
branches: [v4]
paths:
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
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 }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-slim as builder
FROM node:20-slim AS builder
WORKDIR /usr/src/app
COPY package.json .
COPY package-lock.json* .
Expand Down

0 comments on commit 66d7dd8

Please sign in to comment.