mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
ci: also allow manual workflow triggers (#1109)
* ci: also allow manual workflow triggers Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com> * ci: add a github actions checker Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
parent
9f0b833293
commit
ca1d4beb2a
2 changed files with 14 additions and 1 deletions
1
.github/workflows/sync-3rdparty-images.yaml
vendored
1
.github/workflows/sync-3rdparty-images.yaml
vendored
|
@ -5,6 +5,7 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
14
Makefile
14
Makefile
|
@ -18,6 +18,8 @@ ORAS := $(TOOLSDIR)/bin/oras
|
|||
ORAS_VERSION := 0.16.0
|
||||
REGCLIENT := $(TOOLSDIR)/bin/regctl
|
||||
REGCLIENT_VERSION := v0.4.5
|
||||
ACTION_VALIDATOR := $(TOOLSDIR)/bin/action-validator
|
||||
ACTION_VALIDATOR_VERSION := v0.2.1
|
||||
STACKER := $(TOOLSDIR)/bin/stacker
|
||||
BATS := $(TOOLSDIR)/bin/bats
|
||||
TESTDATA := $(TOP_LEVEL)/test/data
|
||||
|
@ -30,7 +32,7 @@ hyphen:= -
|
|||
extended-name:=
|
||||
|
||||
.PHONY: all
|
||||
all: modcheck swagger binary binary-minimal binary-debug cli bench exporter-minimal verify-config test covhtml check
|
||||
all: modcheck swagger binary binary-minimal binary-debug cli bench exporter-minimal verify-config test covhtml check check-gh-actions
|
||||
|
||||
.PHONY: modcheck
|
||||
modcheck:
|
||||
|
@ -127,6 +129,16 @@ $(REGCLIENT):
|
|||
cp regctl $(TOOLSDIR)/bin/regctl
|
||||
chmod +x $(TOOLSDIR)/bin/regctl
|
||||
|
||||
$(ACTION_VALIDATOR):
|
||||
mkdir -p $(TOOLSDIR)/bin
|
||||
curl -Lo action-validator https://github.com/mpalmer/action-validator/releases/download/$(ACTION_VALIDATOR_VERSION)/action-validator_linux_amd64
|
||||
cp action-validator $(TOOLSDIR)/bin/action-validator
|
||||
chmod +x $(TOOLSDIR)/bin/action-validator
|
||||
|
||||
.PHONY: check-gh-actions
|
||||
check-gh-actions: $(ACTION_VALIDATOR)
|
||||
for i in $$(ls .github/workflows/*); do $(ACTION_VALIDATOR) $$i; done
|
||||
|
||||
.PHONY: covhtml
|
||||
covhtml:
|
||||
go install github.com/wadey/gocovmerge@latest
|
||||
|
|
Loading…
Reference in a new issue