Skip to content

Commit

Permalink
deploy images with short sha
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Dec 29, 2024
1 parent ce8e05f commit 3d6546b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docker-publish-multi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ jobs:
shell: bash
run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Short SHA
shell: bash
run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV

- name: Set up Depot CLI
uses: depot/setup-action@v1

Expand All @@ -95,7 +99,7 @@ jobs:
file: ./${{ matrix.dockerfile }}
push: false
platforms: ${{ matrix.platform }}
tags: frameos/frameos:${{ env.BRANCH_NAME }}-${{ github.sha }}
tags: frameos/frameos:${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand Down Expand Up @@ -125,6 +129,10 @@ jobs:
shell: bash
run: echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Short SHA
shell: bash
run: echo "SHORT_SHA=${GITHUB_SHA:0:7}" >> $GITHUB_ENV

- name: Set up Depot CLI
uses: depot/setup-action@v1

Expand All @@ -138,5 +146,5 @@ jobs:
push: true
platforms: linux/amd64,linux/arm64/v8
tags: |
frameos/frameos:${{ env.BRANCH_NAME }}-${{ github.sha }}
frameos/frameos:${{ env.BRANCH_NAME }}-${{ env.SHORT_SHA }}
frameos/frameos:latest

0 comments on commit 3d6546b

Please sign in to comment.