Skip to content

Commit

Permalink
Update deploy-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wilinz authored Sep 7, 2024
1 parent 47ef330 commit b024dc7
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ jobs:
id: git_tag
run: |
git_tag=$(git describe --tags --exact-match 2>/dev/null || echo "none")
echo "::set-output name=tag::$git_tag"
echo "tag=$git_tag" >> $GITHUB_ENV
- name: Build and Push Docker image
run: |
docker buildx build --platform linux/amd64 \
-f ./deploy/Dockerfile \
-t docker.kexie.space/kexie/kexie-hello-web:${{ steps.git_tag.outputs.tag }} \
-t docker.kexie.space/kexie/kexie-hello-web:latest \
--push .

docker buildx build --platform linux/amd64 \
-f ./deploy/Dockerfile \
-t docker.kexie.space/kexie/kexie-hello-web:${{ env.tag }} \
-t docker.kexie.space/kexie/kexie-hello-web:latest \
--push .

0 comments on commit b024dc7

Please sign in to comment.