@@ -14,22 +14,22 @@ jobs:
14
14
15
15
steps :
16
16
- name : Set up Docker Buildx
17
- if : ${{ contains (github.ref, 'refs/heads/release/ ') }}
17
+ if : ${{ startsWith (github.ref, 'refs/tags/v ') }}
18
18
id : buildx
19
19
uses : docker/setup-buildx-action@v2
20
20
with :
21
21
buildkitd-flags : --debug
22
22
23
23
- name : Login to Github Packages
24
- if : ${{ contains (github.ref, 'refs/heads/release/ ') }}
24
+ if : ${{ startsWith (github.ref, 'refs/tags/v ') }}
25
25
uses : docker/login-action@v2
26
26
with :
27
27
registry : ghcr.io
28
28
username : ${{ github.actor }}
29
29
password : ${{ secrets.GITHUB_TOKEN }}
30
30
31
31
- name : Checkout code
32
- if : ${{ contains (github.ref, 'refs/heads/release/ ') }}
32
+ if : ${{ startsWith (github.ref, 'refs/tags/v ') }}
33
33
uses : actions/checkout@v3
34
34
with :
35
35
fetch-depth : 1
@@ -39,12 +39,12 @@ jobs:
39
39
run : echo "##[set-output name=tag;]$(echo ${GITHUB_REF_NAME#*/})"
40
40
41
41
- name : Current Version Name
42
- if : ${{ contains (github.ref, 'refs/heads/release/ ') }}
42
+ if : ${{ startsWith (github.ref, 'refs/tags/v ') }}
43
43
run : |
44
44
echo ${{ steps.extract_tag.outputs.tag }}
45
45
46
46
- name : Build and push deepsparse with all dependencies
47
- if : ${{ contains (github.ref, 'refs/heads/release/ ') }}
47
+ if : ${{ startsWith (github.ref, 'refs/tags/v ') }}
48
48
uses : docker/build-push-action@v2
49
49
with :
50
50
context : ./docker
56
56
ghcr.io/neuralmagic/deepsparse:${{ steps.extract_tag.outputs.tag }}
57
57
58
58
- name : Build and push deepsparse-base
59
- if : ${{ contains (github.ref, 'refs/heads/release/ ') }}
59
+ if : ${{ startsWith (github.ref, 'refs/tags/v ') }}
60
60
uses : docker/build-push-action@v2
61
61
with :
62
62
context : ./docker
69
69
70
70
71
71
- name : Image digest
72
- if : ${{ contains (github.ref, 'refs/heads/release/ ') }}
72
+ if : ${{ startsWith (github.ref, 'refs/tags/v ') }}
73
73
run : echo ${{ steps.docker_build.outputs.digest }}
0 commit comments