Skip to content

Commit

Permalink
fix: workflows and release
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com>
  • Loading branch information
xunholy committed Aug 11, 2021
1 parent 3dcb60e commit da29243
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true

- name: Shellcheck
uses: reviewdog/action-shellcheck@v1
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: release
name: draft release

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: release

on:
workflow_dispatch: {}
# Execute every Sunday at 00:00.
schedule:
- cron: '0 0 * * 0'


jobs:
update_draft:
runs-on: ubuntu-latest
steps:
- name: Get Latest Release
uses: InsonusK/get-latest-release@v1.0.1
id: release_id
with:
myToken: ${{ github.token }}
exclude_types: "prerelease|release"
view_top: 1

- name: Publish Release
uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ steps.release_id.outputs.id }}
3 changes: 3 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
branches:
- main
pull_request:
branches:
- main

jobs:
trivy:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export GITHUB_TOKEN="${GITHUB_TOKEN}"

## This will deep merge your kube config assuming you used the k8s-cluster-installation to bootstrap your cluster.
## You will need to modify the PATH to the location of the playbooks on your local machine.
# KUBECONFIG=~/projects/install/ansible/playbooks/output/k8s-config.yaml:~/.kube/config kubectl config view --flatten > ~/.kube/config.tmp && \
# KUBECONFIG=~/projects/k8s-cluster-installation/ansible/playbooks/output/k8s-config.yaml:~/.kube/config kubectl config view --flatten > ~/.kube/config.tmp && \
# mv ~/.kube/config.tmp ~/.kube/config

flux >/dev/null || \
Expand Down

0 comments on commit da29243

Please sign in to comment.