Skip to content

Commit

Permalink
use a short sha instead
Browse files Browse the repository at this point in the history
  • Loading branch information
clbx committed May 27, 2024
1 parent 55cbc25 commit f47d32e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get short SHA
id: vars
run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
Expand All @@ -27,4 +30,4 @@ jobs:
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/kubectl-browse-pvc:develop
${{ secrets.DOCKERHUB_USERNAME }}/kubectl-browse-pvc:${{ github.sha }}
${{ secrets.DOCKERHUB_USERNAME }}/kubectl-browse-pvc:${{ env.GITHUB_SHA_SHORT }}

0 comments on commit f47d32e

Please sign in to comment.