Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach authored Apr 22, 2021
1 parent 692975b commit 4479c3d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ jobs:

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: crazy-max/ghaction-docker-meta@v2.3.0
with:
images: tillsteinbach/prosafe_exporter_python
tags: |
type=edge,
type=semver,pattern={{version}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Setup Docker Buildx
Expand All @@ -36,8 +46,9 @@ jobs:
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64,linux/arm/v7,linux/arm64
tags: tillsteinbach/prosafe_exporter_python:latest
cache-from: type=registry,ref=tillsteinbach/prosafe_exporter_python:latest
cache-to: type=inline
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

0 comments on commit 4479c3d

Please sign in to comment.