File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 echo "Deleting old cache version ID: $id"
9292 gh api -X DELETE "orgs/elementsinteractive/packages/container/lightman-ai/versions/$id"
9393 done
94- update_uv_lock :
95- name : Update uv.lock file # uv.lock contains the outdated version of our project
96- runs-on : ubuntu-latest
97- needs : [push_to_pypi, push_to_docker_hub]
98- if : always()
99- permissions :
100- contents : read
101- packages : write
102- steps :
103- - uses : actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
104- id : app-token
105- with :
106- app-id : ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }}
107- private-key : ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }}
108- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
109- with :
110- fetch-depth : 0
111- token : ${{ steps.app-token.outputs.token }}
112- ref : ${{ github.head_ref }}
113- - name : Install uv
114- uses : astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1
115- - name : Update uv.lock with the latest project version
116- run : |
117- uv lock --upgrade-package lightman_ai
118- git add uv.lock
119-
120- - name : Configure git
121- run : |
122- git config --global --add safe.directory "*"
123- git config user.name "github-actions[bot]"
124- git config user.email "github-actions[bot]@users.noreply.github.com"
125-
126- - name : Update the latest commit with the newest additions
127- run : |
128- git commit --amend --no-edit
129- TAG=$(git tag -l | tail -n 1)
130- git tag -d $TAG
131- git tag $TAG
132- git push origin HEAD:main -f
133- git push origin --tags -f
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ COPY --from=build --chown=${USER}:${GROUP} ${VENV_PATH} ${VENV_PATH}
5353ENV PATH="${BIN_PATH}:$PATH"
5454
5555# Copy needed files to install the package
56- COPY --from=build --chown=${USER}:${GROUP} VERSION .
56+ COPY --from=build --chown=${USER}:${GROUP} ${WORKDIR}/ VERSION .
5757COPY --from=build --chown=${USER}:${GROUP} ${WORKDIR}/pyproject.toml .
5858COPY --chown=${USER}:${GROUP} README.md README.md
5959COPY --chown=${USER}:${GROUP} src src
You can’t perform that action at this time.
0 commit comments