From 1424f4d3e1a2b014236301a67673224a8710000b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B8rn=20Tore=20L=C3=B8dding?= <bjortlod@stud.ntnu.no>
Date: Tue, 21 Jan 2025 12:17:36 +0000
Subject: [PATCH] Add new file

---
 .gitlab-ci.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..5873548
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+stages:
+  - sync
+
+sync_to_github:
+  stage: sync
+  script:
+    # Sett opp Git-konfigurasjon
+    - git config --global user.email "gitlab@example.com"
+    - git config --global user.name "GitLab CI"
+    # Legg til GitHub som en remote
+    - git remote add github https://oauth2:${GITHUB_TOKEN}@github.com/brukernavn/github-repo.git
+    # Pushe endringer til GitHub
+    - git push github --all
+    - git push github --tags
+  only:
+    - main  # Velg branch(er) som skal trigge sync
-- 
GitLab