Skip to content

Commit

Permalink
use steps.date to store date
Browse files Browse the repository at this point in the history
  • Loading branch information
meffie96 committed Feb 27, 2024
1 parent c7c7a62 commit d08ab81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set current date as tag
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Login to GitHub Container registry
uses: docker/login-action@v3
env:
Expand All @@ -29,4 +30,4 @@ jobs:
context: .
file: Dockerfile
push: true
tags: ghcr.io/wwu-trap/cjp8:$NOW
tags: ghcr.io/wwu-trap/cjp8:${{ steps.date.outputs.date }}

0 comments on commit d08ab81

Please sign in to comment.