diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0c54fb7..4240304 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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: @@ -29,4 +30,4 @@ jobs: context: . file: Dockerfile push: true - tags: ghcr.io/wwu-trap/cjp8:$NOW \ No newline at end of file + tags: ghcr.io/wwu-trap/cjp8:${{ steps.date.outputs.date }} \ No newline at end of file