Skip to content

Commit

Permalink
chore(github-actions): docker version with sha
Browse files Browse the repository at this point in the history
  • Loading branch information
Aysnine committed Jun 6, 2023
1 parent fff686d commit 553456e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
pack:
if: ${{ !contains(github.event.head_commit.message, 'chore(docs)') && !contains(github.event.head_commit.message, '[deploy]') }}
if: ${{ !contains(github.event.head_commit.message, 'chore(docs)') && !contains(github.event.head_commit.message, '[deploy]') }}
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.previousTag.outputs.tag }}
Expand All @@ -35,6 +35,9 @@ jobs:
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.0.0
- name: Get Short Sha
id: shortSha
uses: benjlevesque/[email protected]

- name: Upload Artifact
uses: actions/upload-artifact@v3
Expand Down Expand Up @@ -98,11 +101,11 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64
tags: |
aysnine/assistant-she:${{ needs.pack.outputs.tag }}
aysnine/assistant-she:${{ needs.pack.outputs.tag }}_${{ needs.pack.outputs.shortSha } }}
aysnine/assistant-she:latest
- run: |
TAG=${{ needs.pack.outputs.tag }}
TAG=${{ needs.pack.outputs.tag }}_${{ needs.pack.outputs.shortSha } }}
echo $TAG
sed -i -e "s/\:latest/\:${TAG}/g" ./deploy/cls-softfunny.yaml
cat ./deploy/cls-softfunny.yaml
Expand Down

0 comments on commit 553456e

Please sign in to comment.