Skip to content

Commit

Permalink
fix: dist and release (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
devigned authored May 17, 2020
1 parent cfd0f29 commit 41d6824
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
The image for this release is `azk8sinfra/k8s-infra-controller:${{ env.RELEASE_VERSION }}`.
- name: upload manifest
id: manifest
id: manifest-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/release.yaml
asset_name: manifest.yaml
asset_content_type: application/x-yaml
asset_content_type: application/octet-stream
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@ deploy: manifests $(KUBECTL) $(KUSTOMIZE) docker-build docker-push ## Deploy con
$(KUSTOMIZE) build config/default | sed "s_${CONFIG_REGISTRY}_${REGISTRY}/${IMG}_" | $(KUBECTL) apply -f -

.PHONY: docker-build
docker-build: test ## Build the docker image
docker-build: ## Build the docker image
docker build . -t $(REGISTRY)/${IMG}

.PHONY: docker-push
docker-push: ## Push the docker image
docker push $(REGISTRY)/${IMG}

.PHONY: dist
dist:
dist: $(KUSTOMIZE)
mkdir -p dist
$(KUSTOMIZE) build config/default | sed "s_${CONFIG_REGISTRY}_${REGISTRY}/${IMG}_" | > dist/release.yaml

.PHONY: release
release: dist docker-build docker-push $(KUSTOMIZE) ## Build, push, generate dist for release
release: dist docker-build docker-push ## Build, push, generate dist for release

0 comments on commit 41d6824

Please sign in to comment.