Spaces:
Running
Running
fix(github): use sha as image version (#1103)
Browse files
.github/workflows/deploy-prod.yml
CHANGED
@@ -57,14 +57,14 @@ jobs:
|
|
57 |
runs-on: ubuntu-latest
|
58 |
needs: ["build-and-publish-huggingchat-image"]
|
59 |
steps:
|
60 |
-
- name:
|
61 |
-
|
62 |
|
63 |
- name: Gen values
|
64 |
run: |
|
65 |
VALUES=$(cat <<-END
|
66 |
image:
|
67 |
-
tag: "
|
68 |
END
|
69 |
)
|
70 |
echo "VALUES=$(echo "$VALUES" | yq -o=json | jq tostring)" >> $GITHUB_ENV
|
|
|
57 |
runs-on: ubuntu-latest
|
58 |
needs: ["build-and-publish-huggingchat-image"]
|
59 |
steps:
|
60 |
+
- name: Inject slug/short variables
|
61 |
+
uses: rlespinasse/github-slug-action@v4.5.0
|
62 |
|
63 |
- name: Gen values
|
64 |
run: |
|
65 |
VALUES=$(cat <<-END
|
66 |
image:
|
67 |
+
tag: "sha-${{ env.GITHUB_SHA_SHORT }}"
|
68 |
END
|
69 |
)
|
70 |
echo "VALUES=$(echo "$VALUES" | yq -o=json | jq tostring)" >> $GITHUB_ENV
|