Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add timestamp to container as primitive version #224

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}