mirror of
https://github.com/zalando-incubator/kube-metrics-adapter.git
synced 2025-01-03 07:40:09 +00:00
Enable pushing to ghcr.io on merge to master (#625)
Signed-off-by: Mikkel Oscar Lyderik Larsen <mikkel.larsen@zalando.de>
This commit is contained in:
Mikkel Oscar Lyderik Larsen
committed by
GitHub
parent
7c1339a6f2
commit
e54f3b88cf
15
.github/workflows/gh-packages.yaml
vendored
15
.github/workflows/gh-packages.yaml
vendored
@ -3,6 +3,8 @@ permissions: {}
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
@ -73,6 +75,17 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
build-args: BASE_IMAGE=alpine:3
|
build-args: BASE_IMAGE=alpine:3
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
# Build and push latest tag
|
||||||
|
- name: Build and push latest
|
||||||
|
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
build-args: BASE_IMAGE=alpine:3
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
Reference in New Issue
Block a user