Skip to content

Commit

Permalink
check env var -3
Browse files Browse the repository at this point in the history
  • Loading branch information
sundarr786 committed Dec 23, 2023
1 parent fa0df00 commit 2668048
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ jobs:
build:
runs-on: ubuntu-latest

env:
timestamp_t: hello

steps:
- uses: actions/checkout@v3

- name: Get DateTime
run: echo "DATE_TAG=$(date +%Y-%m-%d-%H%M%S)" >> GITHUB_ENV


- name: Get Date
id: get_date
run: |
CURRENT_TIME=$(date +'%Y%m%d.%H%M%S')
echo "TIME=$CURRENT_TIME" >> $GITHUB_ENV
echo "TIME=$CURRENT_TIME" >> $GITHUB_OUTPUT
- name: Read Tag
run: echo ${{ env.DATE_TAG }}
run: echo ${{ env.TIME }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -35,4 +37,4 @@ jobs:
with:
context: .
push: true
tags: sundarr786/myplugin:${{ env.DATE_TAG }}
tags: sundarr786/myplugin:${{ env.TIME }}

0 comments on commit 2668048

Please sign in to comment.