Skip to content

Commit

Permalink
added fix for github action without cache
Browse files Browse the repository at this point in the history
  • Loading branch information
romer8 committed May 6, 2024
1 parent 99dc6c8 commit 63cb551
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build_and_push_dev_image.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: build_push_dev_image

on:
pull_request:
push:
branches:
- '*'

tags:
- 'v*'
pull_request:
branches:
- 'master'
env:
DOCKER_HUB_ORG: gioelkin
DOCKER_REPO: tethys-ngiab
Expand All @@ -32,10 +35,6 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -54,8 +53,6 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
cache-from: type=registry,ref=${{ steps.meta.outputs.tags }}-cache
cache-to: type=registry,ref=${{ steps.meta.outputs.tags }}-cache,mode=max
- name: Export digest
run: |
mkdir -p /tmp/digests
Expand Down

0 comments on commit 63cb551

Please sign in to comment.