From 71990bf5ea5dda3c94078dd8bfc04b7d67e1e10b Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Mon, 27 Apr 2020 17:05:57 +0200 Subject: [PATCH 1/2] build fluxctl snap using GH Action For every commit to master, this GH Action workflow - builds the snap using snap/snapcraft.yaml - if it's a tagged release, upload the resulting snap to the stable channel of the snap - if not, upload the resulting snap to the edge channel --- .github/workflows/fluxctl-snap.yaml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/fluxctl-snap.yaml diff --git a/.github/workflows/fluxctl-snap.yaml b/.github/workflows/fluxctl-snap.yaml new file mode 100644 index 000000000..015f88b79 --- /dev/null +++ b/.github/workflows/fluxctl-snap.yaml @@ -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 From a551b5f083928db9b9c318a1fa966d36078a83ec Mon Sep 17 00:00:00 2001 From: Daniel Holbach Date: Tue, 26 May 2020 17:27:25 +0200 Subject: [PATCH 2/2] exclude man7.org (self-signed cert) from being checked, point to https --- .github/workflows/docs.yaml | 2 +- docs/faq.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index dfe656236..456d1d62c 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -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 }} diff --git a/docs/faq.md b/docs/faq.md index 375bf3ed6..cc49d000c 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -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`