From 087de23897bbc69bdb4e909d20fe2bc77cce1696 Mon Sep 17 00:00:00 2001 From: Salah Aldeen Al Saleh Date: Wed, 29 Nov 2023 15:17:19 +0000 Subject: [PATCH] test without gcsfuse --- .../build-push-kotsadm-image/action.yml | 69 +++++++++---------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/.github/actions/build-push-kotsadm-image/action.yml b/.github/actions/build-push-kotsadm-image/action.yml index 67d4ccdd12..51c4f1c169 100644 --- a/.github/actions/build-push-kotsadm-image/action.yml +++ b/.github/actions/build-push-kotsadm-image/action.yml @@ -34,41 +34,40 @@ inputs: runs: using: "composite" steps: - - uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1 - with: - workload_identity_provider: ${{ inputs.chainguard-gcp-wif-pool }} - service_account: ${{ inputs.chainguard-gcp-sa }} - - - uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b # v1.1.1 - with: - project_id: ${{ inputs.chainguard-gcp-project-id }} - - - name: setup packages gcsfuse - env: - BUCKET: replicated-apk-registry - shell: bash - run: | - # Install gcsfuse - export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` - echo "deb [signed-by=/usr/share/keyrings/cloud.google.asc] https://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo tee /usr/share/keyrings/cloud.google.asc - - sudo apt-get update -y - sudo apt-get install gcsfuse -y - - # Set up a gcsfuse RO mount to the bucket containing private packages. This is a cheap and - # cheerful way to get access to objects we need, without having to fetch all of them. - mkdir -p /tmp/gcsfuse/apk-repo - gcsfuse -o ro --implicit-dirs --only-dir os ${BUCKET} /tmp/gcsfuse/apk-repo - - # Symlink the gcsfuse mount to ./packages/$arch/*.apk - mkdir -p ./packages/x86_64 - ln -s /tmp/gcsfuse/apk-repo/x86_64/*.apk ./packages/x86_64/ - - # Make a copy of the APKINDEX.* since we'll need to write to it on package builds - cp /tmp/gcsfuse/apk-repo/x86_64/APKINDEX.* ./packages/x86_64/ - - ls -lR ./packages/ + # - uses: google-github-actions/auth@35b0e87d162680511bf346c299f71c9c5c379033 # v1.1.1 + # with: + # workload_identity_provider: ${{ inputs.chainguard-gcp-wif-pool }} + # service_account: ${{ inputs.chainguard-gcp-sa }} + + # - uses: google-github-actions/setup-gcloud@e30db14379863a8c79331b04a9969f4c1e225e0b # v1.1.1 + # with: + # project_id: ${{ inputs.chainguard-gcp-project-id }} + + # - name: setup packages gcsfuse + # env: + # BUCKET: replicated-apk-registry + # shell: bash + # run: | + # # Install gcsfuse + # export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s` + # echo "deb [signed-by=/usr/share/keyrings/cloud.google.asc] https://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list + # curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo tee /usr/share/keyrings/cloud.google.asc + # sudo apt-get update -y + # sudo apt-get install gcsfuse -y + + # # Set up a gcsfuse RO mount to the bucket containing private packages. This is a cheap and + # # cheerful way to get access to objects we need, without having to fetch all of them. + # mkdir -p /tmp/gcsfuse/apk-repo + # gcsfuse -o ro --implicit-dirs --only-dir os ${BUCKET} /tmp/gcsfuse/apk-repo + + # # Symlink the gcsfuse mount to ./packages/$arch/*.apk + # mkdir -p ./packages/x86_64 + # ln -s /tmp/gcsfuse/apk-repo/x86_64/*.apk ./packages/x86_64/ + + # # Make a copy of the APKINDEX.* since we'll need to write to it on package builds + # cp /tmp/gcsfuse/apk-repo/x86_64/APKINDEX.* ./packages/x86_64/ + + # ls -lR ./packages/ - name: template melange and apko configs shell: bash