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