We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c6b2db commit 6663ab8Copy full SHA for 6663ab8
.github/workflows/docker-build.yml
@@ -40,12 +40,9 @@ jobs:
40
with:
41
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42
tags: |
43
- type=ref,event=branch
44
- type=ref,event=pr
45
type=semver,pattern={{version}}
46
type=semver,pattern={{major}}.{{minor}}
47
type=semver,pattern={{major}}
48
- type=sha,prefix=commit-
49
type=raw,value=latest,enable={{is_default_branch}}
50
51
- name: Build and push Docker image
deployment/Dockerfile
@@ -8,6 +8,10 @@ RUN npm install
8
9
COPY . .
10
11
+# Set mock environment variables for build
12
+ENV REGISTRY_URL=https://registry-1.docker.io
13
+ENV REGISTRY_AUTH=ZHVtbXk6ZHVtbXk=
14
+
15
RUN npm run build
16
17
FROM nginx:alpine
0 commit comments