Skip to content

Commit baadb25

Browse files
authored
Update docker-image.yml
1 parent 09932b0 commit baadb25

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,8 @@ on:
55
tags:
66
- "v*.*"
77
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:
2610
push-ghcr:
2711
runs-on: ubuntu-20.04
2812
env:
@@ -37,11 +21,11 @@ jobs:
3721
username: ${{ github.repository_owner }}
3822
password: ${{ secrets.PACKAGES_TOKEN }}
3923
- name: Build && Push
40-
uses: docker/build-push-action@v2
24+
uses: docker/build-push-action@v4
4125
with:
4226
context: .
4327
file: ./Dockerfile
4428
push: true
4529
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 }}
4731
${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest

0 commit comments

Comments
 (0)