Skip to content

Commit

Permalink
test without gcsfuse
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Nov 29, 2023
1 parent bfb865e commit 087de23
Showing 1 changed file with 34 additions and 35 deletions.
69 changes: 34 additions & 35 deletions .github/actions/build-push-kotsadm-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 087de23

Please sign in to comment.