From 54870364e967bc0a69b3e231bf5e8adb409db51f Mon Sep 17 00:00:00 2001 From: Jeremy Karst Date: Wed, 6 May 2026 23:20:58 -0400 Subject: [PATCH] Updated docker_host to localhost --- .forgejo/workflows/deploy.yaml | 5 ++--- .../forgejo-actions-portainer-automation/index.md | 7 +++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 5c11c8b..fcc4b50 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -1,13 +1,12 @@ on: push: - branches: - - master jobs: build-and-deploy: + if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) runs-on: self-hosted env: - DOCKER_HOST: tcp://172.17.0.1:2376 + DOCKER_HOST: tcp://localhost:2376 container: image: catthehacker/ubuntu:act-latest options: --network host diff --git a/content/personal-blog/forgejo-actions-portainer-automation/index.md b/content/personal-blog/forgejo-actions-portainer-automation/index.md index 8e996c1..1633201 100644 --- a/content/personal-blog/forgejo-actions-portainer-automation/index.md +++ b/content/personal-blog/forgejo-actions-portainer-automation/index.md @@ -168,14 +168,13 @@ With everything in place, the workflow builds the image, pushes it to the regist ```yaml on: push: - branches: - - main - + jobs: build-and-deploy: + if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) runs-on: self-hosted env: - DOCKER_HOST: tcp://172.17.0.1:2376 + DOCKER_HOST: tcp://localhost:2376 container: image: catthehacker/ubuntu:act-latest options: --network host