Skip to content

Commit 538b32c

Browse files
committed
🧰 build: add push with tag.
1 parent c4a7015 commit 538b32c

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,24 @@ jobs:
4747
id: date
4848
run: echo "name=$(date +'%m-%d-%Y')" >> $GITHUB_OUTPUT
4949

50-
- name: Build the dfa-fastapi Docker image
50+
- name: Build the ddeutil-workflow Docker image latest
51+
if: ${{ github.ref_name }}
5152
run: |
5253
docker buildx build \
5354
--no-cache \
5455
--file ./.container/Dockerfile \
5556
--platform linux/amd64,linux/arm64 \
5657
--tag ${{ vars.GH_REPO_URL }}:latest \
5758
--push .
59+
60+
- name: Build the ddeutil-workflow Docker image with tag
61+
if: github.ref_type == 'tag'
62+
run: |
63+
TAG=$(echo ${GITHUB_REF#refs/tags/} | tr "[:upper:]" "[:lower:]" | sed -e 's/v//g')
64+
echo $TAG
65+
66+
# docker buildx build \
67+
# --file ./.container/Dockerfile \
68+
# --platform linux/amd64,linux/arm64 \
69+
# --tag ${{ vars.GH_REPO_URL }}:${{ github.ref_name }} \
70+
# --push .

0 commit comments

Comments
 (0)