Skip to content

Commit 6663ab8

Browse files
committed
feat: add mock env and remove some uncessary docker hash
1 parent 7c6b2db commit 6663ab8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/docker-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ jobs:
4040
with:
4141
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4242
tags: |
43-
type=ref,event=branch
44-
type=ref,event=pr
4543
type=semver,pattern={{version}}
4644
type=semver,pattern={{major}}.{{minor}}
4745
type=semver,pattern={{major}}
48-
type=sha,prefix=commit-
4946
type=raw,value=latest,enable={{is_default_branch}}
5047
5148
- name: Build and push Docker image

deployment/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ RUN npm install
88

99
COPY . .
1010

11+
# Set mock environment variables for build
12+
ENV REGISTRY_URL=https://registry-1.docker.io
13+
ENV REGISTRY_AUTH=ZHVtbXk6ZHVtbXk=
14+
1115
RUN npm run build
1216

1317
FROM nginx:alpine

0 commit comments

Comments
 (0)