nsarrazin HF staff commited on
Commit
ff05f84
1 Parent(s): ebac27c

Make sure CI/CD is the same for no DB image (#989)

Browse files

* Make sure CI/CD is the same for no DB image

* get package version

Files changed (1) hide show
  1. .github/workflows/build-image.yml +7 -4
.github/workflows/build-image.yml CHANGED
@@ -24,7 +24,6 @@ jobs:
24
  - name: Extract package version
25
  id: package-version
26
  run: echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
27
- if: github.event_name == 'release'
28
 
29
  - name: Docker metadata
30
  id: meta
@@ -67,6 +66,11 @@ jobs:
67
  steps:
68
  - name: Checkout
69
  uses: actions/checkout@v4
 
 
 
 
 
70
  - name: Docker metadata
71
  id: meta
72
  uses: docker/metadata-action@v5
@@ -74,10 +78,9 @@ jobs:
74
  images: |
75
  ghcr.io/huggingface/chat-ui
76
  tags: |
 
77
  type=raw,value=latest,enable={{is_default_branch}}
78
- type=semver,pattern={{version}}
79
- type=semver,pattern={{major}}
80
- type=semver,pattern={{major}}.{{minor}}
81
 
82
  - name: Set up QEMU
83
  uses: docker/setup-qemu-action@v3
 
24
  - name: Extract package version
25
  id: package-version
26
  run: echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
 
27
 
28
  - name: Docker metadata
29
  id: meta
 
66
  steps:
67
  - name: Checkout
68
  uses: actions/checkout@v4
69
+
70
+ - name: Extract package version
71
+ id: package-version
72
+ run: echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
73
+
74
  - name: Docker metadata
75
  id: meta
76
  uses: docker/metadata-action@v5
 
78
  images: |
79
  ghcr.io/huggingface/chat-ui
80
  tags: |
81
+ type=semver,value=${{ steps.package-version.outputs.version }},enable={{github.event_name == 'release'}}
82
  type=raw,value=latest,enable={{is_default_branch}}
83
+ type=sha,enable={{is_default_branch}}
 
 
84
 
85
  - name: Set up QEMU
86
  uses: docker/setup-qemu-action@v3