diff --git a/.drone.yml b/.drone.yml index a19a00f..b3540db 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,49 +18,49 @@ steps: - bundle install - bundle exec jekyll build -- name: ssh commands - image: appleboy/drone-ssh - settings: - host: - from_secret: homelab_host - username: - from_secret: homelab_user - key: - from_secret: homelab_pwd - port: 22 - script: - - bash ~/scripts/sthopedevupdate - when: - status: - - success +# - name: ssh commands +# image: appleboy/drone-ssh +# settings: +# host: +# from_secret: homelab_host +# username: +# from_secret: homelab_user +# key: +# from_secret: homelab_pwd +# port: 22 +# script: +# - bash ~/scripts/sthopedevupdate +# when: +# status: +# - success -- name: discord - pull: always - image: appleboy/drone-discord - avatar_url: "https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png" - environment: - DISCORD_WEBHOOK_ID: - from_secret: discord_webhook_id - DISCORD_WEBHOOK_TOKEN: - from_secret: discord_webhook_token - settings: - message: > - {{#success build.status}} - ✅ Build #{{build.number}} of `{{repo.name}}` succeeded. +# - name: discord +# pull: always +# image: appleboy/drone-discord +# avatar_url: "https://git.sthope.dev/sthope/drone_test/raw/branch/master/rick.png" +# environment: +# DISCORD_WEBHOOK_ID: +# from_secret: discord_webhook_id +# DISCORD_WEBHOOK_TOKEN: +# from_secret: discord_webhook_token +# settings: +# message: > +# {{#success build.status}} +# ✅ Build #{{build.number}} of `{{repo.name}}` succeeded. - 📝 Commit by {{commit.author}} on `{{commit.branch}}`: - ``` - {{commit.message}} - ``` - 🌐 <{{ build.link }}> - {{else}} - ❌ Build #{{build.number}} of `{{repo.name}}` failed. - 📝 Commit by {{commit.author}} on `{{commit.branch}}`: - ``` - {{commit.message}} - ``` - 🌐 <{{ build.link }}> - {{/success}} +# 📝 Commit by {{commit.author}} on `{{commit.branch}}`: +# ``` +# {{commit.message}} +# ``` +# 🌐 <{{ build.link }}> +# {{else}} +# ❌ Build #{{build.number}} of `{{repo.name}}` failed. +# 📝 Commit by {{commit.author}} on `{{commit.branch}}`: +# ``` +# {{commit.message}} +# ``` +# 🌐 <{{ build.link }}> +# {{/success}} # # when: # # event: diff --git a/_posts/2021-09-03-ssh-keys.md b/_drafts/2021-09-03-ssh-keys.md similarity index 87% rename from _posts/2021-09-03-ssh-keys.md rename to _drafts/2021-09-03-ssh-keys.md index e11b56f..1400fb2 100644 --- a/_posts/2021-09-03-ssh-keys.md +++ b/_drafts/2021-09-03-ssh-keys.md @@ -15,6 +15,6 @@ cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 64 | head -n 1 Replace `very_long_secret` with the long generated password and replace `/opt/.certs/service` with the location for your keys and the name (different name for each key "service") Default generally is `~/.ssh/id_rsa`, you can omit `-f "/opt/.certs/service"` if you don't want to choose it. ``` -ssh-keygen -t rsa -b 4096 -f "/opt/.certs/service" -C "Hopeless Automations" +ssh-keygen -t rsa -b 4096 -f "/opt/.certs/service" -C "Private Key Comment" ``` diff --git a/_posts/2021-09-03-portainer-oauth.md b/_posts/2021-09-03-portainer-oauth.md new file mode 100644 index 0000000..5dcdee0 --- /dev/null +++ b/_posts/2021-09-03-portainer-oauth.md @@ -0,0 +1,26 @@ +--- +layout: post +title: "Portainer Oauth" +description: "Login into Portainer using your Github account or even better.. your private Gitea account (with 2FA)" +author: sthope +image: +categories: [ Docker, Portainer, Portainer Agent ] +comments: true +pic01: "/assets/images/portainer_oauth/1.jpg" +pic02: "/assets/images/portainer_oauth/2.jpg" +pic03: "/assets/images/portainer_oauth/3.jpg" +pic04: "/assets/images/portainer_oauth/4.jpg" +pic05: "/assets/images/portainer_oauth/5.jpg" +pic06: "/assets/images/portainer_oauth/6.jpg" +pic07: "/assets/images/portainer_oauth/7.jpg" +--- + + +# Github + +Login into Github and go to https://github.com/settings/profile on the right side menu near the end enter `Developer settings` and select `OAuth Apps` +![pic01]({{page.pic01}}) + +# Gitea + +Enter https://git.sthope.dev/user/settings and go to `Applications` \ No newline at end of file diff --git a/assets/images/avatar-sthope.png b/assets/images/avatar-sthope.png index 0432e01..15cbae1 100644 Binary files a/assets/images/avatar-sthope.png and b/assets/images/avatar-sthope.png differ diff --git a/assets/images/portainer_oauth/1.png b/assets/images/portainer_oauth/1.png new file mode 100644 index 0000000..8f58624 Binary files /dev/null and b/assets/images/portainer_oauth/1.png differ diff --git a/assets/images/portainer_oauth/2.png b/assets/images/portainer_oauth/2.png new file mode 100644 index 0000000..3fed655 Binary files /dev/null and b/assets/images/portainer_oauth/2.png differ diff --git a/assets/images/portainer_oauth/3.png b/assets/images/portainer_oauth/3.png new file mode 100644 index 0000000..0e0ea7a Binary files /dev/null and b/assets/images/portainer_oauth/3.png differ diff --git a/assets/images/portainer_oauth/4.png b/assets/images/portainer_oauth/4.png new file mode 100644 index 0000000..4783408 Binary files /dev/null and b/assets/images/portainer_oauth/4.png differ diff --git a/assets/images/portainer_oauth/5.png b/assets/images/portainer_oauth/5.png new file mode 100644 index 0000000..2f09089 Binary files /dev/null and b/assets/images/portainer_oauth/5.png differ diff --git a/assets/images/portainer_oauth/6.png b/assets/images/portainer_oauth/6.png new file mode 100644 index 0000000..175cbfe Binary files /dev/null and b/assets/images/portainer_oauth/6.png differ diff --git a/assets/images/portainer_oauth/7.png b/assets/images/portainer_oauth/7.png new file mode 100644 index 0000000..b8c239c Binary files /dev/null and b/assets/images/portainer_oauth/7.png differ