Skip to content
Snippets Groups Projects
Commit 136366df authored by Nico's avatar Nico
Browse files

ci: specify how to fixup conflicts when pulling dl cache

parent 652c2f1b
No related branches found
No related tags found
No related merge requests found
Pipeline #2142 failed
...@@ -21,7 +21,7 @@ default: ...@@ -21,7 +21,7 @@ default:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- cat gitlab-known-hosts >> ~/.ssh/known_hosts - cat gitlab-known-hosts >> ~/.ssh/known_hosts
- test -d ffs-openwrt-dl-cache || git clone ssh://git@ssh.gitlab.freifunk-stuttgart.de:22220/firmware/ffs-openwrt-dl-cache.git - test -d ffs-openwrt-dl-cache || git clone ssh://git@ssh.gitlab.freifunk-stuttgart.de:22220/firmware/ffs-openwrt-dl-cache.git
- git -C ffs-openwrt-dl-cache pull || true - git -C ffs-openwrt-dl-cache pull --no-rebase || true
- rm -rf gluon/openwrt/dl && mkdir -p gluon/openwrt && ln -s ../../ffs-openwrt-dl-cache gluon/openwrt/dl - rm -rf gluon/openwrt/dl && mkdir -p gluon/openwrt && ln -s ../../ffs-openwrt-dl-cache gluon/openwrt/dl
- rm -rf gluon/openwrt/staging_dir && mkdir -p staging_dir && ln -s ../../staging_dir gluon/openwrt/staging_dir - rm -rf gluon/openwrt/staging_dir && mkdir -p staging_dir && ln -s ../../staging_dir gluon/openwrt/staging_dir
after_script: after_script:
...@@ -34,9 +34,9 @@ default: ...@@ -34,9 +34,9 @@ default:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- cat gitlab-known-hosts >> ~/.ssh/known_hosts - cat gitlab-known-hosts >> ~/.ssh/known_hosts
- cd gluon/openwrt/dl - cd gluon/openwrt/dl
- git pull || true - git pull --no-rebase || true
- git add . && git commit -m "update DL cache" || true - git add . && git commit -m "update DL cache" || true
- git pull && git push || true - git pull --no-rebase && git push || true
generate_date: generate_date:
stage: generate_date stage: generate_date
......
  • Nico @nrb

    mentioned in commit 4fc3b12c

    ·

    mentioned in commit 4fc3b12c

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment