diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml index f1d0182ae..06432980b 100644 --- a/.github/workflows/build-containers.yml +++ b/.github/workflows/build-containers.yml @@ -1,5 +1,5 @@ --- -name: "Build Tag" +name: "Build Containers" on: workflow_dispatch: @@ -26,10 +26,14 @@ jobs: - name: docker build run: /var/run/docker-build.sh + - name: Get date + run: | + echo "DATE=$(date +'%s')" >> "$GITHUB_ENV" + - name: docker tag run: | - docker tag localhost/postiz ghcr.io/githubhq/postiz-app:${{ GITHUB_REF_NAME }} - docker push ghcr.io/githubhq/postiz-app:${{ GITHUB_REF_NAME }} + docker tag localhost/postiz ghcr.io/githubhq/postiz-app:${{ env.DATE }} + docker push ghcr.io/githubhq/postiz-app:${{ env.DATE }} - docker tag localhost/postiz-devcontainer ghcr.io/githubhq/postiz-app:${{ GITHUB_REF_NAME }} - docker push ghcr.io/githubhq/postiz-devcontainer:${{ GITHUB_REF_NAME }} + docker tag localhost/postiz-devcontainer ghcr.io/githubhq/postiz-app:${{ env.DATE }} + docker push ghcr.io/githubhq/postiz-devcontainer:${{ env.DATE }}