File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- - release-*
7+ tags :
8+ - ' v*'
89 pull_request : {}
9- workflow_dispatch :
10- inputs :
11- version :
12- description : Package version (e.g. v0.1.0)
13- required : false
1410
1511env :
1612 REGISTRY : ghcr.io
1713
18- # The package version to push. The default is 0.0.0-gitsha.
19- XPKG_VERSION : ${{ inputs.version }}
20-
2114jobs :
2215 build :
2316 runs-on : ubuntu-24.04
4134 username : ${{ github.actor }}
4235 password : ${{ secrets.GITHUB_TOKEN }}
4336
44- # If a version wasn't explicitly passed as a workflow_dispatch input we
45- # default to version v0.0.0-<git-commit-date>-<git-short-sha>, for example
46- # v0.0.0-20231101115142-1091066df799. This is a simple implementation of
47- # Go's pseudo-versions: https://go.dev/ref/mod#pseudo-versions.
48- - name : Set Default Multi-Platform Package Version
49- if : env.XPKG_VERSION == ''
50- run : echo "XPKG_VERSION=v0.0.0-$(date -d@$(git show -s --format=%ct) +%Y%m%d%H%M%S)-$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV
51-
5237 - name : Push xpkg
53- if : env.XPKG_VERSION != ''
5438 run : make push
Original file line number Diff line number Diff line change 1- LIBRARY_VERSION: =0.16.0
21PROVIDER_VERSION: =0.40.0
3- XPKG_VERSION? =$(LIBRARY_VERSION ) -$(PROVIDER_VERSION )
42JSONNET_BIN: =jrsonnet
53CROSSPLANE? =crossplane
64REGISTRY? =ghcr.io
75SHELL: =/bin/bash
86
7+ XPKG_VERSION? =$(shell git describe --tags)
8+
99GENERATOR_DEPTHS: =$(shell find generator -type f)
1010
1111.PHONY : build
@@ -51,10 +51,6 @@ docs: $(shell find grafanaplane/ -type f)
5151 -S -c -m docs \
5252 -e ' (import "github.com/jsonnet-libs/docsonnet/doc-util/main.libsonnet").render(import "grafanaplane/main.libsonnet")'
5353
54- .PHONY : tag
55- tag :
56- git tag $(LIBRARY_VERSION ) -$(PROVIDER_VERSION )
57-
5854.PHONY : fmt
5955fmt :
6056 @find . \
You can’t perform that action at this time.
0 commit comments