Skip to content

Commit

Permalink
Generate manifest and check it in
Browse files Browse the repository at this point in the history
  • Loading branch information
phillc committed Mar 30, 2020
1 parent ac85ed3 commit 6b524ab
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: Build
run: make build-linux
run: make linode
- name: Publish latest to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/generate-manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release manifests
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build manifest
run: "./hack/release-yaml.sh ${{ github.event.release.tag_name }}"
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -- pkg/linode-bs/deploy/releases/linode-blockstorage-csi-driver*\.yaml
git commit -m "Update manifests"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ linode-container: linode

.PHONY: push
push: linode-container
#@echo "$$DOCKER_PASSWORD" | docker login -u "$$DOCKER_USERNAME" --password-stdin
docker push $(IMAGE_TAG)

.PHONY: verify
Expand Down

0 comments on commit 6b524ab

Please sign in to comment.