Skip to content

Commit

Permalink
ci: Add timestamp to container as primitive version
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Sep 9, 2024
1 parent d93d644 commit 27aaf6e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "Build Tag"
name: "Build Containers"

on:
push:
Expand All @@ -25,10 +25,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 }}

0 comments on commit 27aaf6e

Please sign in to comment.