File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 .
You can’t perform that action at this time.
0 commit comments