Skip to content

Commit

Permalink
build(backend): Fix backend CD
Browse files Browse the repository at this point in the history
  • Loading branch information
farnoux committed Sep 26, 2024
1 parent fdc44d9 commit aa7ac36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 3 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ ARG --global FRONT_DEPS_TAG=$(openssl dgst -sha256 -r ./pnpm-lock.yaml | head -c
ARG --global FRONT_DEPS_IMG_NAME=$REG_TARGET/front-deps:$FRONT_DEPS_TAG
ARG --global APP_TAG=$ENV_NAME-$FRONT_DEPS_TAG-$(sh ./subdirs_hash.sh $APP_DIR,$UI_DIR,$API_DIR)
ARG --global APP_IMG_NAME=$REG_TARGET/app:$APP_TAG

ARG --global GIT_COMMIT_SHORT_SHA=$(git rev-parse --short HEAD)
ARG --global GIT_COMMIT_TIMESTAMP=$(git show -s --format=%cI HEAD)
ARG --global APPLICATION_VERSION=$(git describe --tags --always)

# TODO changer le tag
ARG --global BACKEND_IMG_NAME=$REG_TARGET/backend:$ENV_NAME-$GIT_COMMIT_SHORT_SHA
Expand Down
5 changes: 0 additions & 5 deletions backend/Earthfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
VERSION 0.8

LOCALLY
ARG --global GIT_COMMIT_SHORT_SHA=$(git rev-parse --short HEAD)
ARG --global GIT_COMMIT_TIMESTAMP=$(git show -s --format=%cI HEAD)
ARG --global APPLICATION_VERSION=$(git describe --tags --always)

build:
FROM ../+front-deps

Expand Down

0 comments on commit aa7ac36

Please sign in to comment.