Skip to content

Commit

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

0 comments on commit c7c7a62

Please sign in to comment.