Skip to content

Commit 241c1dd

Browse files
committed
✨ feat: Add Gitlab import CI YAML
1 parent ebf9886 commit 241c1dd

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
uses: docker/build-push-action@v3
2222
with:
2323
push: true
24-
tags: rdb91/gitops-pusher:latest
24+
tags: tailscale/gitops-pusher:latest

.gitlab/tailscale-acls-gitops.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
image:
2+
name: rdb91/gitops-pusher:latest
3+
entrypoint: [""]
4+
5+
validate tailscale acls:
6+
script:
7+
- gitops-pusher --policy-file=${TAILSCALE_POLICY_FILE:-policy.hujson} test
8+
9+
push:
10+
needs:
11+
- validate tailscale acls
12+
script:
13+
- gitops-pusher --policy-file=${TAILSCALE_POLICY_FILE:-policy.hujson} apply
14+
rules:
15+
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

0 commit comments

Comments
 (0)