diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index 2b873f2..7ff7618 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -20,7 +20,7 @@ jobs: run: echo "::set-output name=date::$(date +%s)" - uses: actions/checkout@v2 - name: Build the Docker image - run: docker build . --file docker/Dockerfile --tag hascheksolutions/opentrashmail:${{ github.event.release.tag_name }} --tag hascheksolutions/opentrashmail:latest + run: docker build . --file docker/Dockerfile --tag hascheksolutions/opentrashmail:${{ steps.date.outputs.date }} --tag hascheksolutions/opentrashmail:latest - name: Login to registry uses: docker/login-action@v1 @@ -30,4 +30,4 @@ jobs: - name: Pushing push as latest run: docker push hascheksolutions/opentrashmail:latest - name: Pushing to private registry - run: docker push hascheksolutions/opentrashmail:${{ github.event.release.tag_name }} \ No newline at end of file + run: docker push hascheksolutions/opentrashmail:${{ steps.date.outputs.date }} \ No newline at end of file