Skip to content

Commit

Permalink
Merge pull request #224 from gitroomhq/ci-actions-containers-timestamp
Browse files Browse the repository at this point in the history
ci: Add timestamp to container as primitive version
  • Loading branch information
jamesread committed Sep 9, 2024
2 parents d09e5ed + 27aaf6e commit 1a5dc25
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:
workflow_dispatch:
Expand All @@ -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 }}

0 comments on commit 1a5dc25

Please sign in to comment.