Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

build fluxctl snap using GH action #3072

Merged
merged 2 commits into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ jobs:
id: lc
uses: peter-evans/link-checker@v1
with:
args: -d ./site -r ./site
args: -d ./site -r ./site -x man7.org
- name: Fail if there were link errors
run: exit ${{ steps.lc.outputs.exit_code }}
31 changes: 31 additions & 0 deletions .github/workflows/fluxctl-snap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build snap

on:
push:
branches:
- master

jobs:
build-snap:
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
with:
snapcraft_token: ${{ secrets.snapcraft_token }}
use_lxd: true

- name: Run Snapcraft build
run: sudo snapcraft --use-lxd

- name: Upload to Snapcraft store (edge channel for revs in master)
if: ${{ ! startsWith(github.event.ref, 'refs/tags') }}
run: snapcraft push --release edge fluxctl_*.snap

- name: Upload to Snapcraft store (stable channel for tagged releases)
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
run: snapcraft push --release stable fluxctl_*.snap
2 changes: 1 addition & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ If you have installed flux through Helm, make sure to pass
As part of using git+ssh securely from the Flux daemon, we make sure
`StrictHostKeyChecking` is on in the
[SSH config](http://man7.org/linux/man-pages/man5/ssh_config.5.html). This
[SSH config](https://man7.org/linux/man-pages/man5/ssh_config.5.html). This
mitigates against man-in-the-middle attacks.
We bake host keys for `github.com`, `gitlab.com`, `bitbucket.org`, `dev.azure.com`, and `vs-ssh.visualstudio.com`
Expand Down