Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringHgui authored Jul 6, 2024
1 parent f721da3 commit 032fac9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: set-version
run: version=$(grep "<Version>" src/Directory.Build.props | awk -F'[<>]' '{print $3}')
- name: set-tag
run: tag=registry.cn-hangzhou.aliyuncs.com/hgui/opentask:$version-$(date +%s)
- name: showEnv
run: echo $tag & echo $version
- name: Build the Docker image
run: docker build . --file Dockerfile --tag $tag
run: |
version=$(grep "<Version>" src/Directory.Build.props | awk -F'[<>]' '{print $3}')
echo $version
tag=registry.cn-hangzhou.aliyuncs.com/hgui/opentask:$version-$(date +%s)
echo $tag
docker build . --file Dockerfile --tag $tag
Expand Down

0 comments on commit 032fac9

Please sign in to comment.