diff --git a/.github/workflows/criteo.yml b/.github/workflows/criteo.yml new file mode 100644 index 000000000000..5f7c30eab23c --- /dev/null +++ b/.github/workflows/criteo.yml @@ -0,0 +1,23 @@ +name: Release +on: release +jobs: + + build: + name: Publish artifacts + runs-on: ubuntu-18.04 + steps: + - name: checkout + uses: actions/checkout@v2 + + - uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: run build + run: GOPATH=$(go env GOPATH) make clean && make -j$nproc IMAGES='ceph' build + + - name: upload ghr + uses: fnkr/github-action-ghr@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GHR_PATH: ./images/ceph/operator.tgz diff --git a/Makefile b/Makefile index 676d53ea74d8..c5fad3543c2e 100644 --- a/Makefile +++ b/Makefile @@ -96,9 +96,6 @@ GO_TEST_FILTER=$(TESTFILTER) include build/makelib/golang.mk -# setup helm charts -include build/makelib/helm.mk - # ==================================================================================== # Targets @@ -106,7 +103,7 @@ build.version: @mkdir -p $(OUTPUT_DIR) @echo "$(VERSION)" > $(OUTPUT_DIR)/version -build.common: build.version helm.build mod.check +build.common: build.version mod.check @$(MAKE) go.init @$(MAKE) go.validate diff --git a/images/ceph/Makefile b/images/ceph/Makefile index 467776866ebe..3917fb5b47e4 100755 --- a/images/ceph/Makefile +++ b/images/ceph/Makefile @@ -80,6 +80,8 @@ ifeq ($(INCLUDE_CSV_TEMPLATES),true) else mkdir $(TEMP)/ceph-csv-templates endif + @mkdir operator + @cp -r $(TEMP)/* operator; tar cvfz operator.tgz operator @cd $(TEMP) && $(SED_IN_PLACE) 's|BASEIMAGE|$(BASEIMAGE)|g' Dockerfile @if [ -z "$(BUILD_CONTAINER_IMAGE)" ]; then\ $(DOCKERCMD) build $(BUILD_ARGS) \