From 27091dde5fb1f71782bf674857f2d67066e9f6d7 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 1 Jun 2024 23:31:41 +0200 Subject: [PATCH] cd_key --- .forgejo/workflows/almalinux:8.yaml | 4 +--- .forgejo/workflows/almalinux:9.yaml | 4 +--- .forgejo/workflows/alpine:3.18.yaml | 4 +--- .forgejo/workflows/alpine:3.19.yaml | 4 +--- .forgejo/workflows/archlinux:base-20231112.0.191179.yaml | 4 +--- .forgejo/workflows/archlinux:base-20240101.0.204074.yaml | 4 +--- .forgejo/workflows/debian:bookworm.yaml | 4 +--- .forgejo/workflows/debian:bullseye.yaml | 4 +--- .forgejo/workflows/fedora:39.yaml | 4 +--- .forgejo/workflows/fedora:40.yaml | 4 +--- .forgejo/workflows/rockylinux:8.yaml | 4 +--- .forgejo/workflows/rockylinux:9.yaml | 4 +--- .forgejo/workflows/ubuntu:jammy.yaml | 4 +--- .forgejo/workflows/ubuntu:noble.yaml | 4 +--- .gitlab-ci.yml | 2 +- cd.sh | 1 - 16 files changed, 15 insertions(+), 44 deletions(-) diff --git a/.forgejo/workflows/almalinux:8.yaml b/.forgejo/workflows/almalinux:8.yaml index 211d932..0230fd1 100644 --- a/.forgejo/workflows/almalinux:8.yaml +++ b/.forgejo/workflows/almalinux:8.yaml @@ -5,9 +5,7 @@ jobs: image: almalinux:8 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/almalinux:9.yaml b/.forgejo/workflows/almalinux:9.yaml index e165951..2211b6f 100644 --- a/.forgejo/workflows/almalinux:9.yaml +++ b/.forgejo/workflows/almalinux:9.yaml @@ -5,9 +5,7 @@ jobs: image: almalinux:9 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/alpine:3.18.yaml b/.forgejo/workflows/alpine:3.18.yaml index 926dd55..40634fb 100644 --- a/.forgejo/workflows/alpine:3.18.yaml +++ b/.forgejo/workflows/alpine:3.18.yaml @@ -5,9 +5,7 @@ jobs: image: alpine:3.18 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/alpine:3.19.yaml b/.forgejo/workflows/alpine:3.19.yaml index 1d74fe0..50f0d83 100644 --- a/.forgejo/workflows/alpine:3.19.yaml +++ b/.forgejo/workflows/alpine:3.19.yaml @@ -5,9 +5,7 @@ jobs: image: alpine:3.19 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/archlinux:base-20231112.0.191179.yaml b/.forgejo/workflows/archlinux:base-20231112.0.191179.yaml index 2d0d8c9..556d13f 100644 --- a/.forgejo/workflows/archlinux:base-20231112.0.191179.yaml +++ b/.forgejo/workflows/archlinux:base-20231112.0.191179.yaml @@ -5,9 +5,7 @@ jobs: image: archlinux:base-20231112.0.191179 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/archlinux:base-20240101.0.204074.yaml b/.forgejo/workflows/archlinux:base-20240101.0.204074.yaml index 77ea39c..2124329 100644 --- a/.forgejo/workflows/archlinux:base-20240101.0.204074.yaml +++ b/.forgejo/workflows/archlinux:base-20240101.0.204074.yaml @@ -5,9 +5,7 @@ jobs: image: archlinux:base-20240101.0.204074 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/debian:bookworm.yaml b/.forgejo/workflows/debian:bookworm.yaml index 162e5f5..1235d43 100644 --- a/.forgejo/workflows/debian:bookworm.yaml +++ b/.forgejo/workflows/debian:bookworm.yaml @@ -5,9 +5,7 @@ jobs: image: debian:bookworm steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/debian:bullseye.yaml b/.forgejo/workflows/debian:bullseye.yaml index a093e85..d5b8911 100644 --- a/.forgejo/workflows/debian:bullseye.yaml +++ b/.forgejo/workflows/debian:bullseye.yaml @@ -5,9 +5,7 @@ jobs: image: debian:bullseye steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/fedora:39.yaml b/.forgejo/workflows/fedora:39.yaml index 6ce1a7f..41489f4 100644 --- a/.forgejo/workflows/fedora:39.yaml +++ b/.forgejo/workflows/fedora:39.yaml @@ -5,9 +5,7 @@ jobs: image: fedora:39 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/fedora:40.yaml b/.forgejo/workflows/fedora:40.yaml index b1104db..c6b6ffb 100644 --- a/.forgejo/workflows/fedora:40.yaml +++ b/.forgejo/workflows/fedora:40.yaml @@ -5,9 +5,7 @@ jobs: image: fedora:40 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/rockylinux:8.yaml b/.forgejo/workflows/rockylinux:8.yaml index 2068399..d9bd3cf 100644 --- a/.forgejo/workflows/rockylinux:8.yaml +++ b/.forgejo/workflows/rockylinux:8.yaml @@ -5,9 +5,7 @@ jobs: image: rockylinux:8 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/rockylinux:9.yaml b/.forgejo/workflows/rockylinux:9.yaml index d66a5fd..dc79d23 100644 --- a/.forgejo/workflows/rockylinux:9.yaml +++ b/.forgejo/workflows/rockylinux:9.yaml @@ -5,9 +5,7 @@ jobs: image: rockylinux:9 steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/ubuntu:jammy.yaml b/.forgejo/workflows/ubuntu:jammy.yaml index d1aba41..d171087 100644 --- a/.forgejo/workflows/ubuntu:jammy.yaml +++ b/.forgejo/workflows/ubuntu:jammy.yaml @@ -5,9 +5,7 @@ jobs: image: ubuntu:jammy steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.forgejo/workflows/ubuntu:noble.yaml b/.forgejo/workflows/ubuntu:noble.yaml index 6d8c598..9768c6f 100644 --- a/.forgejo/workflows/ubuntu:noble.yaml +++ b/.forgejo/workflows/ubuntu:noble.yaml @@ -5,9 +5,7 @@ jobs: image: ubuntu:noble steps: - name: cd - env: - CD: ${{secrets.cd}} - run: ${{vars.cd}} "${{vars.cd_hosts}}" + run: ${{vars.cd}} ${{secrets.cd_key}} "${{vars.cd_hosts}}" - run: cd-list-environment - run: cd-clone-branch diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f2ba1c..3902191 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,7 @@ image: debian:bookworm job: script: - - sh ${CD} ${CD_HOSTS} + - sh ${CD} ${CD_KEY} ${CD_HOSTS} - cd-list-environment - cd-clone-branch diff --git a/cd.sh b/cd.sh index 5df56f1..84992e7 100644 --- a/cd.sh +++ b/cd.sh @@ -13,7 +13,6 @@ rwx \ # main cd_main () { - echo "${@}" cd_set_environment_variables cd_set_packages_repositories cd_set_packages_configuration