Skip to content

Commit 4479c3d

Browse files
Update build.yml
1 parent 692975b commit 4479c3d

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ jobs:
2323

2424
# Steps represent a sequence of tasks that will be executed as part of the job
2525
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v2
28+
- name: Docker meta
29+
id: meta
30+
uses: crazy-max/ghaction-docker-meta@v2.3.0
31+
with:
32+
images: tillsteinbach/prosafe_exporter_python
33+
tags: |
34+
type=edge,
35+
type=semver,pattern={{version}}
2636
- name: Set up QEMU
2737
uses: docker/setup-qemu-action@v1
2838
- name: Setup Docker Buildx
@@ -36,8 +46,9 @@ jobs:
3646
id: docker_build
3747
uses: docker/build-push-action@v2
3848
with:
39-
push: true
49+
push: ${{ github.event_name != 'pull_request' }}
4050
platforms: linux/amd64,linux/arm/v7,linux/arm64
41-
tags: tillsteinbach/prosafe_exporter_python:latest
42-
cache-from: type=registry,ref=tillsteinbach/prosafe_exporter_python:latest
43-
cache-to: type=inline
51+
tags: ${{ steps.meta.outputs.tags }}
52+
labels: ${{ steps.meta.outputs.labels }}
53+
cache-from: type=local,src=/tmp/.buildx-cache
54+
cache-to: type=local,dest=/tmp/.buildx-cache

0 commit comments

Comments
 (0)