File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- " v*.*"
7
7
env :
8
- IMAGE_NAME : SpeechEnhancement
9
- jobs :
10
- get-tags :
11
- runs-on : ubuntu-20.04
12
- env :
13
- TZ : Asia/Shanghai
14
- outputs :
15
- tags : ${{ steps.set-output-id.outputs.tags }}
16
- steps :
17
- - uses : actions/checkout@v2
18
- - name : set-output
19
- id : set-output-id
20
- run : |
21
- VERSION=edge
22
- if [[ $GITHUB_REF == refs/tags/* ]]; then
23
- VERSION=${GITHUB_REF#refs/tags/v}
24
- fi
25
- echo "tags=${VERSION}" >> $GITHUB_OUTPUT
8
+ IMAGE_NAME : speech_enhancement
9
+ jobs :
26
10
push-ghcr :
27
11
runs-on : ubuntu-20.04
28
12
env :
@@ -37,11 +21,11 @@ jobs:
37
21
username : ${{ github.repository_owner }}
38
22
password : ${{ secrets.PACKAGES_TOKEN }}
39
23
- name : Build && Push
40
- uses : docker/build-push-action@v2
24
+ uses : docker/build-push-action@v4
41
25
with :
42
26
context : .
43
27
file : ./Dockerfile
44
28
push : true
45
29
tags : |
46
- ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ needs.get-tags.outputs.tags }}
30
+ ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
47
31
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
You can’t perform that action at this time.
0 commit comments