Skip to content

Commit

Permalink
Add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkbatya committed Jun 5, 2024
1 parent 47caaaa commit 0d4c170
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- dev
tags:
- '*'
env:
IMAGE_NAME: "ghcr.io/flipperdevices/flipper-k8s-db-backuper"

jobs:
build:
Expand All @@ -28,6 +30,7 @@ jobs:
fi
echo "IMAGE_TAG=${IMAGE_TAG}" >> $GITHUB_ENV
echo "image_tag=${IMAGE_TAG}" >> $GITHUB_OUTPUT
echo "image_name=${IMAGE_NAME}" >> $GITHUB_OUTPUT
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
Expand All @@ -42,4 +45,6 @@ jobs:
uses: docker/build-push-action@v4
with:
push: true
tags: flipperdevices/flipper-k8s-db-backuper:${{steps.tag.outputs.image_tag}}
tags: ${{ steps.tag.outputs.image_name }}:${{steps.tag.outputs.image_tag}}
cache-from: type=registry,ref=${{ steps.tag.outputs.image_name }}:buildcache
cache-to: type=registry,ref=${{ steps.tag.outputs.image_name }}:buildcache,mode=max

0 comments on commit 0d4c170

Please sign in to comment.