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

UI customisation: Show Git repo, ref, hash & deploy time in status panel #5

Open
jonnyry opened this issue Nov 27, 2023 · 0 comments
Open
Assignees
Labels
enhancement New feature or request logged u/s Logged in upstream repo

Comments

@jonnyry
Copy link

jonnyry commented Nov 27, 2023

image

Execution contexts:

1. Core repo via GitHub Actions

??? potentially just use git commands as in option 2 ???

Use GitHub Action built in variables

GITHUB_SHA
GITHUB_REF_NAME
GITHUB_SHA 

2. Core repo via local Make

Call git within build process:

GIT_REPO="$(git config --get remote.origin.url | sed 's/.*\/\([^ ]*\/[^.]*\).*/\1/')"
GIT_REF="$(git branch --show-current)"
GIT_HASH="$(git rev-parse --short HEAD)"
DEPLOY_TIME="$(printf '%(%d-%b-%Y %H:%M)T')"

3. Deployment repo via GitHub Actions

4. Deployment repo via local Make

@jonnyry jonnyry added the enhancement New feature or request label Nov 27, 2023
@jonnyry jonnyry self-assigned this Nov 27, 2023
@jonnyry jonnyry transferred this issue from another repository Dec 4, 2023
@jonnyry jonnyry added the logged u/s Logged in upstream repo label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request logged u/s Logged in upstream repo
Projects
None yet
Development

No branches or pull requests

1 participant