From dae7ff6cc36722058b82dd36298c61b02daf7416 Mon Sep 17 00:00:00 2001 From: Michael Helfrich Date: Sat, 12 Feb 2022 17:12:15 -0500 Subject: [PATCH] Adjust the Docker publish to include a date/time tag as well for the weekly push. --- .github/workflows/docker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dc493f3..4e4e897 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -12,16 +12,16 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v2 - - - name: Login to Docker Hub + - name: Login to Docker Hub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - + - name: Get current date/time in the usual format to set the tags + run: echo "DATE_TIME=$(date + '%Y.%m.%d.%H%M%S')" >> $GITHUB_ENV - name: Build and push Docker image uses: docker/build-push-action@v2 with: context: . push: true - tags: mikeah/prusaslicer-novnc:latest + tags: mikeah/prusaslicer-novnc:latest, mikeah/prusaslicer-novnc:${{ env.DATE_TIME }}