Skip to content

Commit 27a929a

Browse files
committed
Consolidate date and timestamp tag steps
1 parent 5961149 commit 27a929a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,15 @@ runs:
6969
exit 1
7070
fi
7171
echo "::set-output name=image::${IMAGE_NAME,,}"
72-
- id: mkdatetag
73-
shell: bash
74-
run: echo "::set-output name=dtag::$(date +%Y%m%d-%H%M)"
72+
7573
- id: create_timestamp_tag
7674
shell: bash
77-
run: echo "::set-output name=tags::${IMAGE}:${TAGNAME:-$DEFAULTTAG}-${DATE}"
75+
run: echo "::set-output name=tags::${IMAGE}:${TAGNAME:-$DEFAULTTAG}-$(date +%Y%m%d-%H%M)"
7876
env:
7977
IMAGE: ${{ steps.generate-image-name.outputs.image }}
8078
TAGNAME: ${{ inputs.tag_name }}
8179
DEFAULTTAG : ${{ inputs.osg_series }}-${{ inputs.repo }}
82-
DATE: ${{ steps.mkdatetag.outputs.dtag }}
80+
8381
- name: Set up Docker Buildx
8482
uses: docker/setup-buildx-action@v1
8583

0 commit comments

Comments
 (0)