Skip to content

Commit

Permalink
PS-688 copy git log into dashboard image (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix authored Nov 13, 2024
1 parent 6343a5a commit 5d090a6
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ jobs:
if: ${{ github.repository_owner == 'alchemy-fr' }}
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 30

- name: Generate git log
if: "${{ inputs.image == 'dashboard' }}"
run: bin/git-log.sh

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ jobs:
mkcert -install
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@v2
Expand Down
2 changes: 2 additions & 0 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ set -e

load-env

bin/git-log.sh

docker compose -f docker-compose.init.yml build $@
docker compose build $@
5 changes: 5 additions & 0 deletions bin/git-log.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash


git --no-pager log --graph --pretty=format:" %h <b>%s</b> %cn %ad <br/>" -n30 >> ./dashboard/client/git-log.html

1 change: 1 addition & 0 deletions dashboard/client/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ logs
*.log
pnpm-debug.log*
lerna-debug.log*
git-log.html

node_modules
dist
Expand Down
1 change: 1 addition & 0 deletions dashboard/client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ ARG SENTRY_RELEASE
ENV SENTRY_RELEASE=${SENTRY_RELEASE}

COPY ./dashboard/client/config-compiler.js /var/app/
COPY ./dashboard/client/git-log.html /var/app/

WORKDIR /var/app

Expand Down

0 comments on commit 5d090a6

Please sign in to comment.