Skip to content

Commit e65e42d

Browse files
committed
Fix SHA label for image autodeploy
1 parent 3172d35 commit e65e42d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,14 @@ jobs:
6767
labels: ${{ steps.meta.outputs.labels }}
6868
build-args: VERSION=${{ github.sha }}
6969

70+
- name: Extract sha-* image label
71+
id: extract-sha
72+
run: echo "sha_tag=$(echo '${{ steps.meta.outputs.tags }}' | grep -o 'sha-[^,]*')" >> $GITHUB_OUTPUT
73+
7074
- name: Deploy to Bunny
7175
uses: BunnyWay/actions/container-update-image@container-update-image_0.1.1
7276
with:
7377
app_id: ${{ vars.BUNNY_APP_ID }}
7478
api_key: ${{ secrets.BUNNY_API_KEY }}
7579
container: TestServer
76-
image_tag: "${{ github.sha }}"
80+
image_tag: "${{ steps.extract-sha.outputs.sha_tag }}"

0 commit comments

Comments
 (0)