Skip to content

Commit c52649d

Browse files
refactor: remove git commands from Dockerfile and add asset version echo in container build
1 parent ebfcacc commit c52649d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/container-build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
# registry credentials
7272
export DOCKER_CONFIG="$(pwd)/container"
7373
echo "{\"auths\":{\"ghcr.io\":{\"auth\":\"$(echo -n ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }} | base64 -w 0)\"}}}" > $DOCKER_CONFIG/config.json
74+
echo "ASSET_VERSION=$VERSION"
7475
# build
7576
buildctl-daemonless.sh build \
7677
--progress plain \

container/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ ARG GITHUB_TOKEN WIKI_FILE ASSET_VERSION
88

99
RUN <<EOF
1010
set -e
11-
git config --global --add safe.directory /workspace
12-
git log -1
1311
export GITHUB_TOKEN="${GITHUB_TOKEN}"
1412
npm clean-install
1513
node --run all

0 commit comments

Comments
 (0)