Skip to content

Commit

Permalink
one more test
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh committed Nov 29, 2023
1 parent b2e3942 commit c1a4224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/actions/build-push-kotsadm-image/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: 'Build and push kotsadm image'
description: 'Composite action for building and pushing kotsadm image'
inputs:
workspace:
description: 'Github workspace'
required: true

chainguard-gcp-wif-pool:
description: 'GCP workload identity pool for Chainguard'
required: true
Expand Down Expand Up @@ -48,10 +52,6 @@ runs:
BUCKET: replicated-apk-registry
shell: bash
run: |
whoami
id -u
id -g
# 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
Expand All @@ -72,9 +72,6 @@ runs:
# 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/
# Set the owner of the packages dir to the runner user
sudo chown -R runner:runner ./packages/
ls -lR ./packages/
- name: template melange and apko configs
Expand All @@ -94,6 +91,7 @@ runs:
archs: x86_64
sign-with-temporary-key: true
cache-dir: ${{ steps.cache-dir.outputs.cache_dir }}
keyring-append: ${{ inputs.workspace }}/packages/chainguard-enterprise.rsa.pub

- uses: chainguard-images/actions/apko-publish@main
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ jobs:
uses: actions/checkout@v3
- uses: ./.github/actions/build-push-kotsadm-image
with:
workspace: ${{ github.workspace }}
chainguard-gcp-wif-pool: ${{ secrets.CHAINGUARD_GCP_WIF_POOL }}
chainguard-gcp-sa: ${{ secrets.CHAINGUARD_GCP_SA }}
chainguard-gcp-project-id: ${{ secrets.CHAINGUARD_GCP_PROJECT_ID }}
Expand Down

0 comments on commit c1a4224

Please sign in to comment.